there is no source code available for the current location 解决方法

我今天在vs2008下调我那个平台程序,发现了一个很搞的问题,以前也遇到过这样的问题,不记得上次是怎么解决的了。
这次只能google了。有一个人事如下回答的:
Erase all the .pdb files that you have in your debug folders.
It will work then.
我也不知道为什么要这么做,我按照我通常的方法是:
将所以debug文件夹和release文件夹全删掉(其实与release无关)就OK了。奇怪。

还依稀记得以前如果好久没有调试以前的一个vs程序了,偶尔某天再跑下程序如果编译有错误的话我也是像上面这么做的。把它们全删掉。

还有如果debug编译正确,release编译错误,有时候我也是这么全删掉,囫囵吞枣的做法吧,还没有理解其本质原因,下次有时间再仔细调查下原因。

如果有谁知道本质的话,那就告诉俺下吧~


Hi,

Did you get "There is no source code available for the current location" error message when you try to insert breakpoint?

This error message means that Visual Studio debugger cannot locate the source file for current location.

You can try the following ways:

  • <div>Disable debugger to look for source files when debugging (Tools -> Options -> Debugging -> uncheck "Require source files to exactly match the original version"). </div>
  • <div>Add the location of this page's source code to "Debug Source Files". (Right-click Solution name in Solution Explorer and select Properties from the shortcut menu. Expand the Common Properties folder, and click the Debug Source Files page)</div>

For more information about debugging, see http://blogs.msdn.com/jimgries/pages/visual-studio-debugger-faq.aspx (Section: Breakpoints ).

 

I hope this helps.


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值