Cannot find .cs files for debugging .NET source code

后端 未结 11 2248
清酒与你
清酒与你 2020-11-29 23:04

I tried setting up debugging the .NET source by following this MDSN walkthrough. The Symbol cache is setup properly, as is the check \'Enable .NET Framework source stepping\

11条回答
  •  不知归路
    2020-11-29 23:19

    Well, in my case I was not trying to debug the .Net framework, but I was getting the same error: Cannot find .cs files for debugging .NET source code. So I had to turn on the "Enable just my code" option under:
    Tools -> Options -> Debugging -> General -> Enable just my Code

    Per MS docs:

    You can configure Visual Studio to automatically step over system, framework, and other non-user calls and collapse those calls in the call stack window.

    https://docs.microsoft.com/en-us/visualstudio/debugger/just-my-code

提交回复
热议问题