VS2015 当前不会命中断点.尚未为该文档加载任何符号 [英] VS2015 The breakpoint will not currently be hit. No symbols have been loaded for this document
问题描述
我有 3 个项目的解决方案.项目一 - 图书馆.项目二 - 服务 (asmx).项目三 - 测试.在我的服务中,我有两个配置转换:PRODUCTION 和 TEST.它们是相等的,但数据库的名称不同.我的解决方案:
如果我 Debug 使用 PRODUCTION.config 进行测试,那么没问题 - 我的断点处于活动状态.如果我 Debug 用 TEST.config 测试,那就不好了.我明白了:
可能是什么问题?对不起我的英语.
修复:
- 鼠标右键单击您的项目
- 选择属性
- 选择构建标签
- 确保 Define DEBUG constant 和 Define TRACE constant 是已检查
- 点击构建"标签页底部的高级按钮
- 确保调试信息:设置为完整
- 点击确定并保存更改
- 清理解决方案并重建项目
源链接
构建的高级设置:
已检查 Microsoft Visual Studio Enterprise 2015 和 Microsoft Visual Studio Professional 2017.
I have solution with 3 projects. Project one - Library. Project two - Service (asmx). Project three - Test. In my service I have two config transform: PRODUCTION and TEST. They are equals, but name of databases is different. My solution:
If I Debug Test with PRODUCTION.config then all right - my breakpoints is active. If I Debug Test with TEST.config then bad. I get this:
What could be the problem? Sorry for my English.
Fixing:
- Right mouse click your project
- Select Properties
- Select the Build tab
- Make sure Define DEBUG constant and Define TRACE constant are checked
- Click the Advanced button at the bottom of the Build tabpage
- Make sure that Debug Info: is set to Full
- Click OK and save changes
- Clean solution and rebuild the project
Link to source Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document.".
(step 6 generates the .pdb files, these are the debugging symbols)
For more information see next screenshots. Build settings:
Advanced settings of build:
Checked for Microsoft Visual Studio Enterprise 2015 and Microsoft Visual Studio Professional 2017.
这篇关于VS2015 当前不会命中断点.尚未为该文档加载任何符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!