skip to Main Content

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

2

Answers


  1. 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.

    Login or Signup to reply.
  2. I had all the same settings as @LexLi and I was still unable to hit breakpoints. I realized I had this setting set to true which was interfering with debugging: omnisharp.enableDecompilationSupport

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search