简体   繁体   中英

Attach to Process is not working in Visual studio 2008 in Windows 7

Today i had a wired issues with Visual Studio 2008 SP1 running in Windows 7 32bit Machine with IIS7 installed. I am developing a web application. I have set up the default website in local host in IIS (IIS 7.0) to run the website and it is working fine when i press F5,the process runs and show break point locations. But when I try to debug the site by selecting attach to process from debug menu and select the browser process (IE8 or Mozilla), nothing happens and the process doesn't hit the break point. What am I doing wrong?

Thanks in advance for the help.

您应该附加到IIS工作进程(w3wp.exe)。

Check you have build the process in debug mode and pdb files are deployed with dll's.

Go to Project Properties > Build Tab > Click Advanced button >Now Set Debug Info to "Full".

In the Web.config file, change the line that reads

<compilation debug="false"/> to <compilation debug="true"/>.

How to: Attach to a Running Process, VS Express Edition does not allow attaching a process for debugging

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