Home > Mobile >  Debug .NET runtime in Visual Studio Code
Debug .NET runtime in Visual Studio Code

Time:01-30

When I attempt to "step into" code from the ASP.NET itself, nothing happens. I suppose that VSC doesn't have the source code for it? How can I do this sort of deep debugging?

Environment:

.NET v7 with ASP.NET

IDE: Visual Studio Code

CodePudding user response:

You just need to read thoroughly the Visual Studio for Windows article, be familiar with both VS and VS Code, and finally translate the required settings to launch.json,

            "justMyCode": false,
            "suppressJITOptimizations": true,
            "sourceLinkOptions": {
                "*": {
                    "enabled": true
                }
            },
            "symbolOptions": {
                "searchPaths": [],
                "searchMicrosoftSymbolServer": true,
                "searchNuGetOrgSymbolServer": true
            }

I wrote a complete article with more details.

  • Related