microsoft / microsoft/vscode-cpptools
Debug session cannot be started a second time, extension re-installation required
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Bug type: Debugger
Describe the bug
- OS and Version: RHEL 7.6
- VS Code Version: 1.6.1.0
- C/C++ Extension Version: v1.7.1
I can successfully start a first debugging session of my C++ binary.
After stopping it, I cannot start anymore a debug session: the bottom bar turns orange and immediately back to normal.
Nothing seems to be logged anywhere, even with all logs enabled.
I have to uninstall the ms-vscode.cpptools extension, reload VSCode, and re-install the extension to debug again.
The problem is the same after the re-installation.
Here is my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "mdsystem-tests",
"type": "cppdbg",
"request": "launch",
"program": "/tmp/mdsystem",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.vscode/debug.env",
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"logging": {
"engineLogging": true,
"exceptions": true,
"moduleLoad": true,
"programOutput": true,
"trace": true,
"traceResponse": true,
}
}
]
}
I have recorded the issue:
- Starting a debug session by pressing F5 to show that it works fine the first time
- The debugger starts, logs in the debug console and the breakpoint is hit as expected
- Disconnecting by pressing the red stop button in the debug menu bar
- Pressing F5 after that does not work anymore
https://user-images.githubusercontent.com/4199392/140548203-ecb0fea5-7acb-4a2f-98ca-320b477bcd01.mp4
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
Riproduci il malfunzionamento con il launch.json fornito: avvia il debug con F5, interrompilo usando il pulsante rosso, quindi premi di nuovo F5. Confronta la console di debug e i log abilitati di engine, eccezioni, caricamento dei moduli, output del programma, trace e trace-response; il lavoro è completato quando una seconda sessione si avvia senza reinstallare l’estensione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100