To start remote debugging an ASP.NET 2.0 app (assuming the app is up and running on the remote server):
- On the remote server start the Visual Studio 2005 Remote Debugger. For this you need to have the VS2005 Tools installed (not necessarily the full VS2005).
- On your local machine, within VS2005 select Debug - Attach to Process...
- In the Qualifier field (in the Attach to Process screen) enter the name of the remote server and press ENTER.
- Select the IIS worker process (w3wp.exe) that is running your web app* and click Attach.
* This is the tricky part - as there is nothing on this screen that helps us identify which of the w3wp.exe process is the one we want. To determine this:
- Log on the the remote server and start a command prompt session.
- Run the following script: c:\windows\system32\iisapp.vbs. This script will list all the currently running w3wp.exe processes, listing their PID and application pool id.
The application pool id is the only relation between the pid and your app.
- Use the apprioriate PID to identify the correct w3wp.exe on the Attach to Process screen.
HTH
Tim