简体   繁体   中英

How to do IIS 6.0 debugging from the code that is published to a folder

I want to do debugging from IIS 6.0 and here is the scenario. I have a web application and I published onto a physical folder (Say FolderA) in my machine. I then merged it with another folder (say FolderB) to integrate the functionality together (essentially, folder merge of bin, images, js, css folders etc). I then mounted FolderB on IIS in my local machine as a new website.

Now, I would want to debug a specific page in the website through IIS. Is this possible? AFAIK, the code in VS got disconnected from code in IIS and so w3wp.exe wouldn't be able to track back to the code that I have in VS. Please help..

In Visual Studio, open the Debug menu and select the Attach to Process option. In the list of processes displayed you should find aspnet_wp.exe . Select this process and click Attach. Debugging your code should now be possible.

Set a breakpoint in your web application code at the required location and when you open the relevant page in your browser, your breakpoint should be triggered in VS.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM