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.
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