Setting a Breakpoint

Debugging enables you to step, line by line, through JavaScript code. You can start debugging in several ways. The Debug menu is the central focus during debugging, as shown in Figure 7-14.

The Debug menu.

Figure 7-14. The Debug menu.

Choose Step Into and begin debugging from the first line of JavaScript. This might seem like a logical thing to do, but remember that you have generated a lot of markup and code by Visual Web Developer and the server controls, so you typically start inside of that JavaScript. Needless to say, it can be confusing and overwhelming.

A better technique is to set breakpoints in your JavaScript. This way, you can focus ...

Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.