Visual Studio Code .NET Core project shows verbose debug console messages

后端 未结 2 444
南笙
南笙 2021-01-13 02:56

I am new to Visual Studio Code. However, one thing thing that I noticed with one of the projects that I have is really bugging me. Whenever, I run the project in Visual Stud

2条回答
  •  一向
    一向 (楼主)
    2021-01-13 03:19

    For Visual Studio Code:

    Use omnisharp-vscode for .net core development which gives you the possibilty to customize
    debugger launch with a json file.
    For example, you could use the following options:

        "justMyCode":false*
        "symbolOptions": {
        "searchPaths": [
            "~/src/MyOtherProject/bin/debug",
            "https://my-companies-symbols-server"
        ],
        "searchMicrosoftSymbolServer": true,
        "cachePath": "/symcache",
        "moduleFilter": {
            "mode": "loadAllButExcluded",
            "excludedModules": [ "DoNotLookForThisOne*.dll" ]
           }
        }
    

    For Visual Studio:

    You could get rid of it, when you load the symbol files (pdb). When debugging, you could open the Module window (Debug -> Windows -> Module) and right click the module whose symbols is not loaded and then select Load Symbols...

    If you want to disable "just my code", please open Tools -> options -> Debugging -> General and clear the checkbox "Enable Just my code (Managed only)"

提交回复
热议问题