Cannot find .cs files for debugging .NET source code

后端 未结 11 2234
清酒与你
清酒与你 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:35

    If the error is from looking for "nullable.cs" or some other core source file:

    You can disable symbols for specific modules by using Debug -> Options -> Debugging -> Symbols and then on the bottom Specify Excluded Modules.

    This is useful for cases where you do want to disable "Just My Code" to step into other assemblies that you have PDBs for. Visual Studio I think comes with symbols for mscorlib.dll but does not include the source so sometimes stepping into things will look for a "nullable.cs" or some other core source file.

提交回复
热议问题