You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set externalConsole to true does not open terminal, and the debugger just hangs. #6805
Other extensions you installed (and if the issue persists after disabling them):
There's no special software.
A clear and concise description of what the bug is.
When I set externalConsole in launch.json to true, pressing F5 will fail to start the debugger, the debugger just hangs.
If externalConsole is set to false, the debug function works fine, but instructions in DEBUG CONSOLE e.g. bt or p var are invalid. What a dilemma it is :(
To Reproduce Please include a code sample and launch.json configuration.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "xxx/build_20.13.1.1/programs/myprograms",
"args": [
"--server",
"-C",
"config.xml"
],
"stopAtEntry": false,
"cwd": "xxx/build_20.13.1.1/programs",
"environment": [],
"externalConsole": ture, // if set to false,it works fine
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
There is an issue with VS Code launching an external window with WSL. This would need to be investigated since we request RunInTerminal with external console, but they may be reporting that the window is succeeding.
Activity
WardenGnaw commentedon Jan 20, 2021
There is an issue with VS Code launching an external window with WSL. This would need to be investigated since we request RunInTerminal with external console, but they may be reporting that the window is succeeding.
github-actions commentedon Jan 20, 2021
This issue has been closed automatically because it's labeled as 'external'.
github-actions commentedon Jul 20, 2021
This issue has been closed automatically because it has not had recent activity.
Alaskra commentedon Jul 23, 2023
It seems this bug have not been resolved, is anyone handling it?
Alaskra commentedon Jul 23, 2023
related issue: #1772
Kellermaan commentedon Oct 30, 2023
yes indeed. the issue is still bothering me.
yizhilsy commentedon Dec 6, 2023
I also meet this problem. After I update vscode to the newest edition, Set externalConsole to true doesn't work.
nepp95 commentedon Jan 18, 2024
Same problem here. externalConsole true = application doesn't run, debugger hangs. Set to false it doesn't output at all.
Not using wsl it works fine so it definitely is a wsl/vscode problem.
DavidC-75 commentedon Jan 31, 2024
Same problem here....
It's so convenient to close issues automatically when there is no recent activity. Problems just go away, it's magic !!
rafael-solorzano commentedon Mar 13, 2024
I am also having the same issue!
totszwai commentedon Aug 14, 2024
3 years later... hello?
thernstig commentedon Sep 12, 2024
Is this not identical to #1772? And this one should thus be closed.
Both seem to be about WSL and
"externalConsole": truenot working.Andrew-S-Jing commentedon Nov 8, 2024
pls help!
"externalConsole": trueis definitely not workingBenjam0 commentedon Dec 13, 2024
same issue... almost 4 years later D:
iyht commentedon Dec 19, 2025
got the same issue in 2025 ...