microsoft / microsoft/vscode-cpptools

Don't restart gdb process when retart debug

Aperta
#11,991 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

debugger help wanted
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Feature Request

When we use command "gdb a.out" to debug a program, we can use "restart" command to redebug the program, this case just restart a.out process, don't restart gdb process.

  902 ?        Ss     0:00  \_ sshd: cat [priv]
  943 ?        S      0:00  |   \_ sshd: cat@pts/5
  944 pts/5    Ss     0:00  |       \_ -bash
 1203 pts/5    S+     0:00  |           \_ gdb a.out
 2052 pts/5    t      0:00  |               \_ /home/cat/example/a.out
 
 
  902 ?        Ss     0:00  \_ sshd: cat [priv]
  943 ?        S      0:00  |   \_ sshd: cat@pts/5
  944 pts/5    Ss     0:00  |       \_ -bash
 1203 pts/5    S+     0:00  |           \_ gdb a.out                   --> not restart
 2699 pts/5    t      0:00  |               \_ /home/cat/example/a.out --> restarted

But we use vscode debugger, click the Restart command when we debuging, it will restart gdb process.

35935 ?        Sl     0:25      \_ /home/cat/.vscode-server/bin/05047486b6df5eb8d44b2ecd/node /h
19529 pts/1    Ss     0:00      |   \_ /bin/bash
43993 pts/1    S+     0:00      |   |   \_ /bin/sh /tmp/Microsoft-MIEngine-Cmd-jdpepmh2.izt
43995 pts/1    S      1:53      |   |       \_ /usr/bin/gdb --interpreter=mi --tty=/dev/pts/1
44113 ?        ts     0:00      |   |           \_ /home/cat/a.out

35935 ?        Sl     0:26      \_ /home/cat/.vscode-server/bin/05047486b6df5eb8d44b2ecd/node /h
19529 pts/1    Ss     0:00      |   \_ /bin/bash
10013 pts/1    S+     0:00      |   |   \_ /bin/sh /tmp/Microsoft-MIEngine-Cmd-rwm0evod.oem
10015 pts/1    S      1:52      |   |       \_ /usr/bin/gdb --interpreter=mi --tty=/dev/pts/1  --> restarted
10174 ?        ts     0:00      |   |           \_ /home/cat/a.out

Can we configure the vscode-debuger, make the gdb process not restart when restart debugger? bacause my a.out is very big, everytime restart gdb process will waste a lot of time.

### Tasks

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando il comando Restart del debugger di VS Code e il ciclo di vita del relativo processo GDB nell’estensione TypeScript. Confronta il comportamento di un Restart diretto di GDB con il flusso del debugger di VS Code descritto qui. Il lavoro è completato quando il debugger può riavviare il processo a.out senza avviare un nuovo processo GDB, mantenendo al contempo il normale comportamento di Restart.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
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
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.