microsoft / microsoft/vscode-cpptools
Set externalConsole to true does not open terminal, and the debugger just hangs.
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema con il launch.json fornito, l’estensione C/C++, VS Code 1.49.0 e WSL CentOS 7, correggendo il valore mostrato di externalConsole se necessario. Confronta la pressione di F5 con externalConsole abilitato e disabilitato; il lavoro è completato quando il terminale esterno si apre e il debugger si avvia normalmente, con i comandi del debugger utilizzabili come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, linux, vscode
- Ambito
- devtools, operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100