C# Visual Studio找不到文件-正在调试
在Visual Studio 2015中调试期间,找不到文件:C# Visual Studio找不到文件-正在调试,c#,visual-studio-2015,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
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
所讨论的.cs文件来自第三方dll,因此我不希望能够单步执行它。看起来好像我不在调试中,但我在调试中,我在web.config中。我在VS中尝试了一百万次设置,但似乎没有任何帮助。例如:
仅启用“我的代码未选中”
将这些文件添加到“不要查找这些源文件”列表中可以使它停止询问文件在哪里,但我仍然会看到“xxx.cs未找到”选项卡这可能是一个非常愚蠢的答案,您可能已经找到了更好的答案
如果您试图阻止Visual Studio单步执行非用户代码,则必须删除dll的.pdb,并在选项中启用“仅我的代码”。您想做什么?你能跳出或越过对第三方库的调用继续调试吗?如果我跨过这个屏幕,它就会过去。但是,在尝试调试某些东西的过程中,第三方DLL中有100个东西。因此,调试基本上是无用的。如果您从第三方调用函数,您应该能够跳过该函数并继续使用您自己的源代码?您也可以在调用第三方函数后直接设置断点,并一直运行到断点。可能的重复:否则您是否尝试删除并重新添加.dll?在大多数情况下(特别是在使用TFS或任何其他VCS时,它打破了我对第三方.dll和项目的大量引用),这是同一个问题,但在这个问题上没有公认的答案,我尝试了除最后一个选项之外的所有选项,对此我非常抗拒