microsoft / microsoft/vscode-cpptools
[gdbserver] Detach when stopping debugging when using gdbserver
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
In our setup we have multiple remote C/C++ applications running on various VMs (like many other projects).
I'm working on making possible to remote debug these applications with VSCode (by attaching, not launching) .
So far I managed to get everything working but 1 very important detail: it's very important that the remote application isn't killed when I stop the debugger (GDB, to be precise).
This is because there are many setups scripts that are run on those applications and we can't re-run all of them every time we end a debugging session.
Is there any way to modify what gdb does at closing time? Ideally, I'd like to first detach the application from GDB and then exit GDB, which is what anyone would do to avoid the killing of the application.
I couldn't find any documentation, issues or unofficial guides regarding this.
Thank you in advance.
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 tracciando nell'estensione TypeScript la gestione dell'attach a gdbserver e dell'arresto del debugger descritta nell'issue, quindi esamina come viene terminata la sessione remota C/C++. Determina dove viene selezionato il comportamento di detach rispetto a quello di terminazione e individua i test esistenti pertinenti, se presenti. Il lavoro è completato quando l'arresto di una sessione gdbserver collegata lascia l'applicazione remota in esecuzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript
- Ambito
- devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100