I'm using JavaScript created by a third-party. I can see it come across the line using Fiddler. Is there any way (i.e. tools) to trace what is actually being execeted on the client without having to put debug/trace statements in the JavaScript files? I am running on IE 7.
Tracing JavaScript execution
Collapse
X
-
firebug allows several ways of doing this type of thing. you can set watches and breakpoints, and monitor function calls.
if you cant use firefox, i guess youll have to hardcode some debugging code in.
you can set a global at the top of the script like debug=true, and later something like if(debug){ alert(cValue); }
this would let you turn off debugging by changing only one var.Comment
-
I downloaded the tool and it looks like could work, but I do not see a built in trace utility. I am executing JavaScript from a third party vendor and I am trying to verify that they have a bug in there code (or not). If I have to modify their scripts they will blame my changes for whatever problems I find. It sounds like Firebug exists for Mozilla, but I can't find anything for IE (which is the only browser my vendor supports).Originally posted by gitsComment
-
you might be able to use something like the IE7 library for firefox to get the code up and running for firebug to consume, just using it to debug the ie code.Originally posted by clarkaFirebug exists for Mozilla, but I can't find anything for IE (which is the only browser my vendor supports).
if anyone around you has a copy of VB6, you can drop a webbrowser control on a new big form, and run it in the VB6 ide. it can be paused, you have an immediate line/window, and can inject your own debug code, without modifying the actual html files.Comment
Comment