Share via


Debugging the Site

The Visual Studio .NET debugger has the ability to attach to a program that is running in a process outside of Visual Studio .NET. You can use this attachment capability to debug a program running on a remote computer. Whether debugging on a remote or local computer, you must attach Visual Studio to the ASP.NET process to debug the site.

To enable debugging on the International Retail Site

  • Verify that the site is in debug mode. The application element in the web.config file should be: <application siteName="Retail2002" debugLevel="Debug"/>

To attach the Visual Studio debugger to the site

  1. Open Internet Explorer.
  2. In Internet Explorer, in the Address box, type the URL for the site, and then press Enter.
  3. Start Visual Studio .NET.
  4. In Visual Studio .NET, on the Tools menu, click Debug Processes.
  5. In the Process dialog box, if necessary, click the [...] ellipses button to browse to the remote server.
  6. In the Available Processes list, select aspnet_wp.exe, and then click Attach.

Ee810259.note(en-US,CS.20).gifNote

  • The source code must be available on the local computer in order to debug the site code.

For more information about debugging ASP.NET Web applications, see "Debugging ASP.NET Web Applications" in Visual Studio Help.

Copyright © 2005 Microsoft Corporation.
All rights reserved.