Restarting an rdbg attach session terminates the debuggee process

Aperta
#1,184 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
ruby, vscode
Ambito
devtools

Direzione di ricerca

Start by reproducing the VS Code Restart action with an rdbg attach session, then trace how the disconnect request handles restart: true and terminateDebuggee: true. Done means restarting or reconnecting the debugger without terminating the attached Ruby process; add or update coverage for this attach-session behavior if the relevant test location is found.

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

Descrizione

Your environment

  • ruby -v: 4.0.5
  • rdbg -v: 1.11.1

Describe the bug
When attaching to an existing Ruby process with rdbg, pressing the Restart button in VS Code terminates the debuggee process.

To Reproduce

  1. Start a Ruby process with rdbg attach enabled.
  2. Attach from VS Code using the rdbg extension.
  3. Press the Restart button in the Debug toolbar.

Expected behavior
The debugger session should restart/reconnect without terminating the attached Ruby process.

Additional context
When pressing Restart, VS Code sends:

{
  "command": "disconnect",
  "arguments": {
    "restart": true,
    "terminateDebuggee": true
  },
  "type": "request"
}

After this, the debuggee terminates.

Lingua principale
Ruby
Stelle
1.3k
Fork
146
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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.

Altre issue di ruby/debug

Tutte le issue di ruby/debug

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.