RE: How to remotely debug an ASP.NET application?
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Fri, 06 Oct 2006 07:18:33 GMT
Hi,
If you're using Visual Studio 2005, please use following steps to test
remote debugging:
0) Install Web Deployment Projects add-in for Visual Studio 2005 on your
develop machine, see [1] for download link; install remote debugging
components on your remote IIS server.
1) Create a new web site in VS2005 using File System mode
2) In Default.aspx.cs: handle Page_Load event, add some code, set a
breakpoint.
3) Publish this web site to your remote server, this will make sure the
remote IIS virtual directory is created correctly.
4) Right-click on your web-site in VS2005, select "Add Web Deployment
Project...", this will create a new WDP project, open its Property Pages,
in "Output Folder", type in the UNC path pointing to the location that the
web site is published to, for example:
\\server\c$\inetpub\wwwroot\TestRemoteDebugging. Make sure "Generate debug
information" is selected, leave other options as default.
5) Right-click on the WDP project, select "Build". This will build your web
site and copy to the server with PDB information generated--which is the
key here to enable remote debugging.
6) "Tools\Options" -> "Debugging\General": uncheck "Enable Just My Code"
7) Make sure remote server is running the remote debugging monitor; Select
"Tools\Attach to process...", select remote process w3wp.exe from your
server (the process that is running under account NETWORK SERVICE)
8) Now, use IE to visit the web page from the remote server, it will take a
while to startup, and it will hit the breakpoint you previously set in step
2.
References:
[1] Visual Studio 2005 Web Deployment Projects
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx
Sincerely,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: How to remotely debug an ASP.NET application?
- From: serious-sam
- Re: How to remotely debug an ASP.NET application?
- Prev by Date: Webservice debugging in VS2005 running on IIS Win 2003 server
- Next by Date: Re: How to remotely debug an ASP.NET application?
- Previous by thread: Webservice debugging in VS2005 running on IIS Win 2003 server
- Next by thread: Re: How to remotely debug an ASP.NET application?
- Index(es):
Relevant Pages
|
Loading