Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 1 rated this helpful - Rate this topic

Debugging Preparation: ASP.NET Web Applications

The ASP.NET Web site template creates a Web Form application. When you create a Web site using this template, Visual Studio creates the default settings for debugging. In the Project Properties dialog box, you can specify whether you want the Web page to be a startup page. When you start debugging an ASP.NET Web Site with these default settings, Visual Studio launches Internet Explorer and attaches the debugger to the ASP.NET worker process (aspnet_wp.exe or w3wp.exe). For more information, see ASP.NET Debugging: System Requirements.

To create a Web Forms application

  1. On the File menu, choose New Web Site.

  2. In the New Web Site dialog box, select ASP.NET Web Site.

  3. Click OK.

To debug your Web form

  1. Set one or more breakpoints in your functions and event handlers.

    For more information, see Breakpoints and Tracepoints.

  2. When a breakpoint is hit, step through code inside the function, observing the execution of your code until you isolate the problem.

    For more information, see Code Stepping Overview and Debugging Web Applications.

Changing Default Configurations

If you need to change the default debug and release configurations created by Visual Studio, you can do so. For more information, see How to: Set Debug and Release Configurations.

To change the default debug configuration

  1. Right-click on the Web site in Solution Explorer, and select Property Pages to open the Property Pages dialog box.

  2. Click Start Options.

  3. Set Start Action to the Web page that should first be displayed.

  4. Under Debuggers, make sure ASP.NET debugging is checked.

    For more information, see Property Pages Settings for Web Projects.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.