Visual Studio 2013 - Source Not Available

99封情书 提交于 2021-02-08 16:34:35

问题


While I am Debugging whenever I click Break All Button it opens a new tab window which says this:

Source Not Available -source information is missing from the debug information for this module

It works fine Edit and continue while debugging but why does the above happen? I don't want this tab window to be displayed every time I click Break All.

Just don't say It's a Microsoft new Bug!

Does anyone have an Idea how to fix that because It's annoying. Thanks!


回答1:


It means that at the time you hit Break the code being executed was from some external library that you don't have the source for; most likely a call to the base language library, of which you no doubt have lots of calls to all over your application. If you did it often enough eventually you'll happen to break at a point where no library call is executing (the specific code of your program will determine how lucky you need to be for that to happen).




回答2:


It is not a Microsoft new bug.

When you break all you are very likely to break on code that occur within compiled libraries in your code. The source would not be available for this, hence the error.

Edit and continue will focus on your code, not that of supporting libraries, so the error doesn't occur. You can see this happen by trying to step into (F11) a 3rd party library in your project.

EDIT: Have you tried going into the Exceptions menu? CTRL + ALT + "E" and unchecking all the Thrown boxes?



来源:https://stackoverflow.com/questions/18794975/visual-studio-2013-source-not-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!