Open CIPop opened 2 years ago
You can change the settings of the debug console and try the other available options.
"cmake.debugConfig": {
"console": "",
}
For example, change it to externalTerminal
and see if that is the kind of behavior you want.
You can change the settings of the debug console and try the other available options.
My autocomplete doesn't show "console" or options.
I can make things log to an external cmd terminal using either:
"console": "externalTerminal"
or
"externalConsole": true
I don't like using an external console window. I would like the previous behavior for VSCode to open a new (default) Terminal.
Last I've tested a few weeks ago, this functionality still worked when I used Linux / SSH Remoting.
IntelliSense is available in the pre-release, but it's not required. Here are the options you can choose from:
Maybe you wanted 'integratedTerminal'?
That worked! Thank you @bobbrow .
I would prefer if we could keep this bug open to track moving the default to this setting to match Linux/Mac and Remote SSH.
We don't apply any defaults for this setting. If you don't set it you get whatever cpptools picks for you. I think it makes more sense to ask for a change in default for cpptools.
whatever cpptools picks for you
I don't see an option for cpptools in settings to control the behavior. There is an open issue/feature to control this: https://github.com/microsoft/vscode-cpptools/issues/9132
That issue is for cppdbg
debug types and it looks like you are using cppvsdbg
which does support the property.
All we do is send the property to the debugger and let them process it. If it works, it should be behaving the same as if you had added the console
property to a similar configuration in launch.json
. So you could ask for cpptools to default to a different value of console
for the cppvsdbg
debug type.
My setup was:
I don't remember setting anything else. I assume that cppvsdbg
is a selection that either the CMake extension did or VSCode defaults to?
Brief Issue Summary
In the past, selecting a project for Debug then running it was creating a new console. This does happen if I run without attaching a debugger (i.e. "Run in terminal").
A workaround is to add output in the debugger window
CMake Tools Diagnostics
Debug Log
Additional Information
No response