开发者

Vistual Studio 2008 SP1 debugging not working with IIS process (sometimes)

I am using VS 2008 SP1 on Windows 7 and tyring to debug a ASP.net website project by attaching debugger to w3wp process, I noticed that debugger wont stop at the breakpoint at everytime. I researched a lot on this issue and found that its a known issue see this link: http://support.microsoft.com/kb/957912. I tried hotfix but still I am facing the same issue, its really annoying to test. Anyone had this issue?

Note: I am using Asp.net routing 开发者_如何学Gofeature which introduced in .net 3.5 SP1.


Check that you select "Managed code" in "attach to" dialog. And, just in case, maybe it's a problem with your routing and there is nothing to do with debugger?


You have to run Visual Studio as an administrator otherwise you are not allowed to attach the debugger to another process.

Or do you sometimes compile in release mode? You also have to set the option debug='true' in the configuration file (it depends on where you set the breakpoint) and set the correct mode when attaching the debugger (attach to managed code).

The breakpoint is also not hit, when you not run the latest version of the code. Make sure you rebuild the code before you attach to w3wp.exe. Start the code with F5 in debug mode should always work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜