VS2015 当前不会命中断点.尚未为该文档加载任何符号 [英] VS2015 The breakpoint will not currently be hit. No symbols have been loaded for this document

查看:161
本文介绍了VS2015 当前不会命中断点.尚未为该文档加载任何符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 3 个项目的解决方案.项目一 - 图书馆.项目二 - 服务 (asmx).项目三 - 测试.在我的服务中,我有两个配置转换:PRODUCTIONTEST.它们是相等的,但数据库的名称不同.我的解决方案:

如果我 Debug 使用 PRODUCTION.config 进行测试,那么没问题 - 我的断点处于活动状态.如果我 DebugTEST.config 测试,那就不好了.我明白了:

可能是什么问题?对不起我的英语.

解决方案

修复:

  1. 鼠标右键单击您的项目
  2. 选择属性
  3. 选择构建标签
  4. 确保 Define DEBUG constantDefine TRACE constant 是已检查
  5. 点击构建"标签页底部的高级按钮
  6. 确保调试信息:设置为完整
  7. 点击确定并保存更改
  8. 清理解决方案并重建项目

源链接

构建的高级设置:

已检查 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:

  1. Right mouse click your project
  2. Select Properties
  3. Select the Build tab
  4. Make sure Define DEBUG constant and Define TRACE constant are checked
  5. Click the Advanced button at the bottom of the Build tabpage
  6. Make sure that Debug Info: is set to Full
  7. Click OK and save changes
  8. 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆