您的位置:首页 > 大数据 > 人工智能

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

2014-11-01 09:29 495 查看
声明: 以下文章转自:咆哮的狼
原文:http://blog.csdn.net/lsg32/article/details/7830771

我今天在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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  调试 vs2008