vb.net Visual Studio 2013 - 源不可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18794975/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2013 - Source Not Available
提问by Milot25
While I am Debugging whenever I click Break All Button it opens a new tab window which says this:
当我在调试时,每当我单击 Break All 按钮时,它都会打开一个新的选项卡窗口,上面写着:
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.
它工作正常编辑并在调试时继续但为什么会发生上述情况?我不希望每次单击 Break All 时都显示此选项卡窗口。
Just don't say It's a Microsoft new Bug!
只是不要说这是微软的新Bug!
Does anyone have an Idea how to fix that because It's annoying. Thanks!
有没有人知道如何解决这个问题,因为这很烦人。谢谢!
采纳答案by Servy
It means that at the time you hit Breakthe 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).
这意味着当您点击Break正在执行的代码时,它来自一些您没有源代码的外部库;最有可能是对基本语言库的调用,毫无疑问,您对整个应用程序都有很多调用。如果你经常这样做,最终你会碰巧在没有执行库调用的地方中断(你的程序的特定代码将决定你需要多么幸运才能发生这种情况)。
回答by paqogomez
It is not a Microsoft new bug.
这不是微软的新错误。
When you break allyou 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.
当您break all很可能会破坏代码中已编译库中出现的代码时。源将无法用于此,因此错误。
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.
编辑并继续将关注您的代码,而不是支持库的代码,因此不会发生错误。您可以通过尝试进入 ( F11) 项目中的第 3 方库来看到这种情况。
EDIT: Have you tried going into the Exceptionsmenu? CTRL + ALT + "E"and unchecking all the Thrownboxes?
编辑:你有没有试过进入Exceptions菜单?CTRL + ALT + "E"并取消选中所有Thrown框?

