asp.net-corevisual-studio-code.net-coreasp.net-core-2.2

Disable verbose logging of symbol loading in vscode debug console


When running my webapp (in vscode), the debug console is filled with lines like these:

Loaded '/foo/bar/dotnet/shared/Microsoft.NETCore.App/2.2.4/System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

and

The thread 123 has exited with code 0 (0x0).

I thought this has something to do with log filtering in the appsettings.json file, but these don't belong to any category I can disable.

This is very annoying - how do I disable it?


Solution

  • These logs are managed by VS Code. You can disable them in the launch.json file in the .vscode directory. You can add the following node inside any of the elements in the configurations node to disable module load messages for that configuration:

    "logging": {
        "moduleLoad": false
    }
    

    There are more options available such as exceptions and programOutput, check out the Intellisense for all available options.