473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ie js console doesn't show correct file

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?

Sep 30 '06 #1
4 2199

webEater wrote:
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; }

Sep 30 '06 #2
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?

Oct 1 '06 #3
webEater wrote:
>>>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?
Make small changes and test often. You'll probably find a good
percentage of errors are common to IE and Firefox, so you can use the
latter to track them down.

--
Ian Collins.
Oct 1 '06 #4
webEater wrote:
>>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?
When this error occurs in IE, you should get a question about if you
want to debug... (If you have a script debugger installed, that is).

Make sure that "Disable Script debugging" IS NOT checked, and
"Display a notification about every script error" IS checked in <Tools>
<Internet Optionson the <Advancedtab.

Also make sure that you have a script debugger installed. "Microsoft
Script Debugger" is a sepatate install, Installing Visual Studio 6.0
With Frontpage will also install one. If you have Visual Studio .NET 2005,
you'll have one of the best debuggers I've seen.

When all this is set up, click the debug button when the error occurs,
and you'll be taken into the debugger with the offending code hilighted.
You will now have full access to local and global variables, call stack,
et.c. et.c...

--
Dag.
Oct 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Chris Maloof | last post by:
Hello, Does anyone know how I can read the ASCII text from a console window (from another application) in WinXP? It doesn't sound like a major operation, but although I can find the window via...
43
by: Dom | last post by:
can someone please help me display text in the console cout << "Testing"; in a different colour to the default one
2
by: Martín Marconcini | last post by:
Hello there, I'm writting (or trying to) a Console Application in C#. I has to be console. I remember back in the old days of Cobol (Unisys), Clipper and even Basic, I used to use a program...
4
by: eduardorp1 | last post by:
I have a GUI application that needs to be invoked from the command line as well. It should work both as a GUI and as a console application. When I invoke it from the command line, it reads all...
5
by: evidica | last post by:
Does anyone know how to print an HTML file with images in a console application?
1
by: John Wright | last post by:
I am running a console application that connects to an Access database (8 million rows) and converts it to a text file and then cleans and compacts the database. When it runs I get the following...
12
by: Dilip | last post by:
Hi All I have a server based C# console application. This application must hide its console window when its launched out on the field. So I dutifully P/Invoke'd FindWindow/ShowWindow...
1
by: TuckerRoth | last post by:
This is my first post on this site, so I don't know the rules. Please correct me if this gets to the wrong folks...etc. PROBLEM: Many of the apps that I am writing need to be able to run 2 ways:...
3
by: =?Utf-8?B?VGVycmFuY2U=?= | last post by:
Good Afternoon: I have two questions I was hoping someone can help me with. 1. I've created a app that creates a xml file; the project was constructed as a console window. I want to know is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.