Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

How to: Debug ASP.NET Web Applications/XML Web Services During Development

This topic applies to:

Visual Studio

Edition

Visual Basic

C#

C++

J#

Visual Web Developer

Express

No

No

No

No

No

Standard

Yes

Yes

No

Yes

Yes

Pro/Team

Yes

Yes

No

Yes

Yes

ASP.NET is the primary technology for developing Web applications in Visual Studio 2005. The Visual Studio debugger provides powerful tools for debugging ASP.NET Web applications locally or on a remote server. This topic describes how to debug an ASP.NET project that is still under development. For information on how to debug a deployed ASP.NET web application, see Debugging Deployed ASP.NET Web Applications/XML Web Services.

To debug an ASP.NET application:

  • You must have adequate permissions. For more information, see ASP.NET Debugging: System Requirements.

  • ASP.NET debugging must be enabled in Project Properties.

  • The configuration file of your application (Web.config) must be set to debug mode. Debug mode causes ASP.NET to generate symbols for dynamically generated files and enables the debugger to attach to the ASP.NET application. Visual Studio sets this automatically when you start to debug, if you created your project from the Web projects template.

  • For more information, see How to: Enable Debugging for ASP.NET Applications.

To debug a Web application during development

  1. On the Debug menu, click Start to start debugging the Web application.

    Visual Studio 2005 builds the Web application project, deploys the application if necessary, starts the ASP.NET Development Server if you are debugging locally, and attaches to the ASP.NET worker process.

  2. Use the Debugger to set and clear breakpoints, step, and perform other debugging operations, as you would for any application.

    For more information, see Debugger Roadmap.

  3. On the Debug menu, click Stop Debugging to end the debugging session, or, on the File menu in Internet Explorer, click Close.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.