Set externalConsole to true does not open terminal, and the debugger just hangs.
Type: Debugger
Describe the bug
-
OS and Version: Window 10 1093 + WSL Centos 7
-
VS Code Version: 1.49.0
-
C/C++ Extension Version: 1.1.3
-
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
externalConsoleinlaunch.jsontotrue, pressing F5 will fail to start the debugger, the debugger just hangs. IfexternalConsoleis set tofalse, the debug function works fine, but instructions inDEBUG CONSOLEe.g.btorp varare 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
}
]
}
]
}
I've seen similar problems in the VsCode community, and they think the problem is caused by extension. Any idea?https://github.com/microsoft/vscode/issues/111160#issuecomment-732000615
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.
This issue has been closed automatically because it's labeled as 'external'.
This issue has been closed automatically because it has not had recent activity.
It seems this bug have not been resolved, is anyone handling it?
related issue: #1772
yes indeed. the issue is still bothering me.
I also meet this problem. After I update vscode to the newest edition, Set externalConsole to true doesn't work.
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.
Same problem here.... It's so convenient to close issues automatically when there is no recent activity. Problems just go away, it's magic !!
I am also having the same issue!
3 years later... hello?
Is this not identical to https://github.com/microsoft/vscode-cpptools/issues/1772? And this one should thus be closed.
Both seem to be about WSL and "externalConsole": true not working.
pls help! "externalConsole": true is definitely not working
same issue... almost 4 years later D: