转:Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document“

Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document


网上收集到的相关解决办法,适用于VB.net:

1st 
Start debugging. Now select Debug->Windows->Modules. In the modules window taht now appears, check what the Symbol Status reads. If it reads "Symbols not loaded", then right click on that row, Load Symbols and select the corresponding pdb file.
If the Symbol Status reads "binary was not built with debug info", you have not built your project with debug information.

To do this:
1) Goto Project->Properties
2) Make sure "Configuration" at the top is "Debug"
3) On the left, select "C/C++", then "General"
4) On the right, change "Debug information format" to "Program Database for edit and continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, Change "Optimization" to "Disabled (/Od)"
7) On the left, select "Code Generation"
8) On the right, change "Runtime library" to "Multi-Threaded Debug (/MTd)"
9) On the left, expand "Linker" and select "Debugging"
10) On the right, change "Generate Debug info" to "Yes (/DEBUG)"
11) Rebuild your project.

Spent a day working this out.. googling always helps !!! A big thanks to these forums.

2nd 

Steps taken / other info:

1).  tried rebuilding the application many times

2).  tried completely deleting and redoing it from scratch

3).  the .pdb file is in the same location as the DLL with the same name and time

4).  my project is running on the debug version of the DLL and associated files

5).  ensured there was only one instance of the DLL, project, etc. on the machine

6).  right clicked on a DLL that is within the Modules window, selected Symbol Settings, selected Debugging | Symbols and manually added the directory with the .pdb file - even though I confirmed that this is the default location used by the project

7).  checked that Enable Just My Code is not selected within the Symbol Settings | Debugging | General menu

8).  tried placing the DLL in the C:/Windows32/ directory just to see if the Modules Window would "see" it

9).  tried adjusting a few other things to match suggestions regarding optimization settings, etc.

10).  tried selecting Load DLL exports within within the Symbol Settings | Debugging | Native menu (although I am not familiar with what this may actually be doing); this caused most of the DLL's in the Modules window to have a listing of Exports Loaded, but did not appear to affect my issue in any way - again my DLL is not within the Modules window

 

另外, 试试tools--> attatch to process.

如果还不行,那可能就是调用这个DLL的主程序的问题了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值