logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Jim Fricker on Tue 24 Feb 2004 in response to Debugging JavaScript in Your Applications

Alternative to debugger;

An alternative to inserting "debugger;" into your code, to stop it before the
error occurs, is to use the IE menu option View/Script Debugger/Open and use
the script debugger (or Script Editor) to set a break point in the code using
F9.


If the code you wish to debug runs as soon as the page is loaded then open a
browser window, use the menu option View/Script Debugger/Break at Next
Statement and then navigate to the page you wish to debug either by using the
next or back buttons or using a favorite or typing in the URL or using a simple
(non javascript) hypertext link.


Jim