microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

[BUG] C# DevKit: csharp.debug.console setting ignored fully #1473

Open cbn-targit opened 2 months ago

cbn-targit commented 2 months ago

Describe the Issue

No matter what value i set for csharp.debug.console, it always launches using internalConsole. I have tried removing all other extensions than those needed for C# Dev Kit, but to no avail

Steps To Reproduce

No response

Expected Behavior

For vscode to respect my settings

Environment Information

cbn-targit commented 2 months ago

Note that i'm developing ASP.NET Core application, if that has anything to do with it

WardenGnaw commented 2 months ago

Unfortunately, that is by design due to how VS Code scrapes the output window to determine if the webpage is ready to be opened.

See https://code.visualstudio.com/docs/editor/debugging#_automatically-open-a-uri-when-debugging-a-server-program

cbn-targit commented 2 months ago

Okay, so i seems as if there is nothing to be done? Can i at least somehow disable all "debug" output, and have just my logs show up?

WardenGnaw commented 1 month ago

If you just want your program output, you will need to go to the vscode settings and disable the following:

csharp.debug.logging.exceptions - Flag to determine whether exception messages should be logged to the output window. This option defaults to true.
csharp.debug.logging.moduleLoad - Flag to determine whether module load events should be logged to the output window. This option defaults to true.
csharp.debug.logging.diagnosticsLog - Various settings used to diagnose issues with the debugger.
csharp.debug.logging.elapsedTiming - If true, engine logging includes adapterElapsedTime and engineElapsedTime properties to indicate the amount of time, in microseconds, that a request took. This option defaults to false.
csharp.debug.logging.threadExit - Controls if a message is logged when a thread in the target process exits. This option defaults to false.
csharp.debug.logging.processExit - Controls if a message is logged when the target process exits, or debugging is stopped. This option defaults to true.

image

See https://code.visualstudio.com/docs/csharp/debugging#_user-settings