Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

Is it possible to debug the asp code remotely. I tried with msvsmon.exe but unable to debug. Can anyone provide the way to debug remotely.

Please find below the steps which i followed.

1. There are two servers Test and APP

2. Visual studio is installed in Test

3. Msvsmon.exe is started in APP server

4. Website is opened in Test server IIS (Localhost)

5. Debugger(w3wp.exe) is attached through Attach->process with APP server

6. I could see the connection is attached in APP server and also enable asp debugging in IIS.

I tried the above steps but the breakpoint is not hit.

Any help is appreciated.

Thanks,
Manowj.
Posted
Updated 29-Aug-19 9:36am

1 solution

At step 4, instead of opening the website in Test Server IIS, use the Visual Studio "File -> Open -> Open Website..." option and navigate to the folder on the remote (APP) server that has the website you want. You will probably want to map a drive on Test that points to that location on APP to make this part easier.

Once the website files from the APP server's folder are loaded into Visual Studio on TEST, right click the project name there, and on its property page in the Start Options, under "Server" click "Choose custom server" and put in the URL of the website that is running on the APP server.

Open the website link in browser. Then in Visual Studio carry on with your step 5 and attach to the w3wp.exe process. If you don't see it still, select show for all users.

Figured this out based on Remote debugging - Visual Studio | Microsoft Docs[^] and the last post at the bottom of debugging - How do you debug classic ASP? - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900