Answer a question

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?

Answers

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 under the configurations node to disable module load messages:

"logging": {
    "moduleLoad": false
}

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

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐