Visual Studio Cant查找文件-调试

Eth*_*fer 5 c# visual-studio-2015

在Visual Studio 2015中进行调试期间,无法找到文件:

xxxx.cs not found
You need to find xxx.cs to view the source for the current call stack frame

Try one of the following options:
- Browse and find xxx.cs

You can view disassembly in the Dissasembly window. To alsways view dissassembly for the missing source files, change the setting in the Options dialog
Run Code Online (Sandbox Code Playgroud)

有问题的.cs文件来自第三方dll,因此我认为无法逐步执行该文件。似乎好像我不在调试中,但是我在web.config中。我已经在VS中尝试了一百万个设置,但似乎无济于事。例如:

取消选中“仅我的代码”复选框将文件添加到“不查找这些源文件”列表中使它停止询问文件在哪里,但是我仍然得到“找不到xxx.cs”选项卡

小智 3

这可能是一个非常愚蠢的答案,并且您可能已经找到了更好的答案。

如果您试图阻止 Visual Studio 单步执行非用户代码,则必须删除 dll 的 .pdb 并在选项中启用“仅我的代码”。