The following module was built either with optimizations enabled or without debug information - winzheng - 博客园

The following module was built either with optimizations enabled or without debug information

今天同事的项目在Debug时遇到一个问题,添加断点,提示:断点在当前文本无效,给调试同昨带来一个问题,经研究发现,这个与Debug的模式有关。

前提:VS2005 sp1,Debug模式。

运行时提示如下信息:

根据提示可以不显示此对话框:

 Tools --> Options --> Debugging --> General --> Enable Just my code (Managed only) --> un check "Warn if no user code on launch"

但是仍然没有解决无法调试的问题,继续研究。

If you right click on the project and go to 'properties', then select the 'build' tab, on the bottom of the page there's an 'Advanced...' button that will display your setting for you output debug info. Set that to 'full' and the error should go away.

OK,搞定。

 

posted @ 2013-07-02 16:35  muzizongheng  阅读(351)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?