By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,567 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,567 IT Pros & Developers. It's quick & easy.

Tracing JavaScript execution

P: 2
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.
Jul 24 '08 #1
Share this Question
Share on Google+
4 Replies


gits
Expert Mod 5K+
P: 5,343
not sure whether this will fullfill your needs completely ... but have a look here

kind regards
Jul 25 '08 #2

rnd me
Expert 100+
P: 427
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.
Jul 25 '08 #3

P: 2
not sure whether this will fullfill your needs completely ... but have a look here

kind regards
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).
Jul 26 '08 #4

rnd me
Expert 100+
P: 427
Firebug exists for Mozilla, but I can't find anything for IE (which is the only browser my vendor supports).
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.

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.
Jul 26 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.