There is No Source Code Available for the Current Location
2010-09-02 03:07
537 查看
今天真的是要很忙的呀,有个大点的工程要调试。但话说“屋漏偏逢连夜雨,想吃包子又遇到面粉涨价”,有个模块死活进不去断点,弹出对话框提示:there is no source code available for the current location。其他模块倒是好好的。到网上查查,查到几个解决方法:
1:clean and rebuild, 一般可以解决大部分问题
当然如果被逼到到网上查,这一步肯定是做过了,不行
2:Tools | Options | Debugging | Native | Load DLL exports ,勾上以后,听说有些人可以解决问题
这个没搞,感觉太高端了
3:针对某个单独文件出现这个问题。 由于一个文件出现问题,你可以删除整个cpp中的内容,只留下几个必要的函数,然后看调试能不能运行到函数中,是否正常,如果还是不正常,一直可以减到只 剩下一个构造函数(看编译中出现的错误)。如果正常,在加一些东西,这时可能可以把原来的内容全部加上都ok的。
这个。。我那个文件有2000多行代码,而且连接着其他模块,这个就算了吧。。
最后还有一个,就是用这个解决的:
1.这个问题是因为你调试的程序集没有同步导致的,就是没有在修改代码后及时的重新编译。
2.右键点击解决方案,点击属性,点击调试源文件,然后把忽略文件下面的条目全部删掉。
3.重新编辑程序集。
我看了下整个工程的属性,果然里面有个我的模块的文件:
把这行删掉,就可以了。
但为什么会出现这行呢?????
1:clean and rebuild, 一般可以解决大部分问题
当然如果被逼到到网上查,这一步肯定是做过了,不行
2:Tools | Options | Debugging | Native | Load DLL exports ,勾上以后,听说有些人可以解决问题
这个没搞,感觉太高端了
3:针对某个单独文件出现这个问题。 由于一个文件出现问题,你可以删除整个cpp中的内容,只留下几个必要的函数,然后看调试能不能运行到函数中,是否正常,如果还是不正常,一直可以减到只 剩下一个构造函数(看编译中出现的错误)。如果正常,在加一些东西,这时可能可以把原来的内容全部加上都ok的。
这个。。我那个文件有2000多行代码,而且连接着其他模块,这个就算了吧。。
最后还有一个,就是用这个解决的:
1.这个问题是因为你调试的程序集没有同步导致的,就是没有在修改代码后及时的重新编译。
2.右键点击解决方案,点击属性,点击调试源文件,然后把忽略文件下面的条目全部删掉。
3.重新编辑程序集。
我看了下整个工程的属性,果然里面有个我的模块的文件:
把这行删掉,就可以了。
但为什么会出现这行呢?????
相关文章推荐
- there is no source code available for the current location
- there is no source code available for the current location的解决方法
- There is no source code available for the current location.
- There is no source code available for the current location
- there is no source code available for the current location 解决方案
- there is no source code available for the current location的解决方法
- there is no source code available for the current location
- C#调试含有源代码的动态链接库遇见there is no source code available for the current location提示时的解决方案
- There is no source code available for the current location
- there is no source code available for the current location的解决方法
- There is no source code available for the current location.
- there is no source code available for the current location 解决方法
- there is no source code available for the current location 解决方案
- there is no source code available for the current location 解决方案
- there is no source code available for the current location的解决方法
- There is no source code available for current location
- 关于there is no cource code available for the current的解决方法
- git 报错 gitThere is no tracking information for the current branch. Please specify which ...
- No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inh
- There is no public key available for the following key IDs:3B4FE6ACC0B21F32