everytime i test my websites in ie (which should be done seperately
from ff) the console shows me the error and the line number.
problem: it shows me the line number of the file of the error's origin,
but it shows me the main html file as file name.
i am developing a bigger project with many js files and often i have to
go through all js files cause i don't know really which file is meant.
is it possible that ie shows me the correct file?
try to display stacktrace.
in stack trace from where the execution began and where the error
occured which led to termination of execution is displayed.
like if your backend is .net use try{}catch(Exception e){ return
e.Stacktrace; }
First of all I am progging javascript, in JS there is no explicit type
declaration, second thing: e.Stacktrace does not exist in IE.
Normally I include several JS files, like this:
....
<script type="text/javascript" src="../js/prototype.js"></script>
<script type="text/javascript"
src="../js/prototype_extended.js"></script>
<script type="text/javascript">
jsPath = '../js/uniajax/';
</script>
<script type="text/javascript" src="../js/uniajax/uniajax.js"></script>
<script type="text/javascript" src="../js/run.js"></script>
....
</head>
<body>
....
<script type="text/javascript" src="js/tagging.js"></script>
....
<script type="text/javascript" src="../js/onload.js"></script>
^ This is a real example of a current project. Now image that IE throws
an error and I don't know from which of those dozens of files it comes
from, thats funny;)( There is no way to put a try { ... } catch around
all the files.
Does somebody have a solution for me?