Debugging the Application (Self-Checking)

In this scenario, you have just started writing a web page to edit a customer’s profile. Assume that you’ve laid out the page, connected to the profile web service, and written the code to save a user’s profile to the database. You now need to start self-checking your work to make sure that everything operates as you expect.

The first step is to start your application in debug mode. This allows you to break into your code if an error occurs. In development, this is typically your default setting. You first invoke debug mode by clicking the Run button (the green arrow on either the Standard or the Debug toolbar). Figure 11.1 shows the sample application about to be run in debug mode for the first time. ...

Get Microsoft® Visual Studio® 2010 Unleashed 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.