Debugging Script .........................................................................................
Script and code-behind programming such as ASP.NET are such an important
aspect of Web programming that you may want to know how to set breakpoints
and otherwise debug scripts. Your best bet for IE work is to download the
Microsoft script debugger from this location:
http://msdn.microsoft.com/library/default.asp?url=/downloads/
list/webdev.asp
After you’ve installed it, you can turn it on while in Internet Explorer by
choosing View ➪Script Debugger ➪Open. You then see the debugger
(it works with both VBScript and JScript), as shown in Figure 18-2:
To ensure that the debugger works, follow these steps:
- In Internet Explorer, choose Tools➪Internet Options.
The Internet Options dialog box opens.
- Click the Advanced tab.
- Scroll down the Settings list box until you locate the Browsing section.
- Uncheck the following two boxes: Disable Script Debugging (Internet
Explorer) and Disable Script Debugging (Other).
- Check the Display a Notification About Every Script Error Entry (this
is optional).
Figure 18-2:
Use this
debugger to
get your
scripts
working
right.
Chapter 18: Ten Great CSS Tips and Tricks 323