简体   繁体   English

Visual Studio 2008>已禁用应用程序调试

[英]Visual Studio 2008 > Application debugging disabled

today my VS2008 started to have a strange behaviour... I usually work wit web sites (not web project) and when I need to debug I attach the debugger to the w3wc.exe process. 今天,我的VS2008开始有一种奇怪的行为...我通常在网站(不是Web项目)上工作,当需要调试时,我会将调试器附加到w3wc.exe进程中。

But today when I attach the process I get a kind of toolbox on the solution explorer, as you can see from this screenshot 但是今天,当我附加该过程时,在解决方案资源管理器上会得到一种工具箱,如您从此屏幕截图中所见

http://i45.tinypic.com/a0ggmw.jpg http://i45.tinypic.com/a0ggmw.jpg

(sorry, I can't post images yet) (对不起,我还不能发布图片)

I still put breakpoints but they're ignored. 我仍然放置断点,但是它们被忽略了。 Do you know what happened? 你知道发生了什么吗?

tnx d tnx d

Solved. 解决了。 In my Solution there are: 在我的解决方案中有:

  • a web site 一个网站
  • a project 一个专案
  • another project 另一个项目
  • yet another project 另一个项目

the web site had a dll of "yet another project", but it was copied manually, the web site had not the reference to "yet another project". 该网站的dll是“另一个项目”,但是是手动复制的,该网站没有引用“另一个项目”。 So I modified the sources of "yet another project" and since that moment I wasn't able to debug. 因此,我修改了“另一个项目”的源代码,从那时起,我无法进行调试。

Solution: I've deleted the DLL and added the reference to "yet another project", now I can attach w3wp.exe and use the debugger. 解决方案:我已经删除了DLL,并添加了“还另一个项目”的引用,现在我可以附加w3wp.exe并使用调试器了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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