您的位置:首页 > 其它

使用vs的时候,遇到这个:当前不会命中断点 还没有为该文档加载任何符号

2014-12-05 10:28 183 查看
http://stackoverflow.com/questions/2155930/fixing-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-fo

unable to hit the breakpoint

Start debugging, as soon as you've arrived at a breakpoint or used
Debug > Break All
, use
Debug > Windows > Modules
. You'll see a list of all the assemblies that are loaded into the process. Locate the one you want to get debug info for. Right-click it and select Symbol Load Information. You'll get a dialog that lists all the directories where it looked for the .pdb file for the assembly. Verify that list against the actual .pdb location. Make sure it doesn't find an old one.

In normal projects, the assembly and its .pdb file should always have been copied by the IDE into the same folder as your .exe. The bin\Debug folder of your project. Make sure you remove one from the GAC if you've been playing with it.

需要去确认下项目的生成路径,清空路径下的pdb文件。

清理解决方案的时候,有可能没有清理干净。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐