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