简体   繁体   中英

VSCode debug C# _ How to prevent opening internal debug console

When I debug my C# code I don't want to open internal debug console (My setting in ".vscode/launch.json" is: "console": "externalTerminal"), I need only external console:

在此处输入图像描述

I've disabled debug console:

在此处输入图像描述

but debug console still reveals.

Please help to prevent revealing debug console.

You should add a setting in launch.json .
Add "internalConsoleOptions": "neverOpen" , then the debug console won't appear again.

I found solution. you need to do 2 things:

  1. into first object of ".vscode/launch.json":

"console": "externalTerminal", "internalConsoleOptions": "neverOpen",

  1. into array, first object of ".vscode/tasks.json":

"presentation": { "reveal": "never" }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM