Should not suspend on detached mode

Aperta
#160 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
devtools

Direzione di ricerca

The issue names detached execution, binding.bp, and the exe/rdbg -O target.rb -n entry point, but no implementation file or test. Start by tracing how detached sessions handle binding.bp and compare the expected behavior with the current remote-console wait. Done means an agreed configuration scope, implemented behavior, and tests covering the selected default and option.

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

Descrizione

Now, detached debuggee encounters the suspend point (like binding.bp), the debuggee will suspend and wait for remote console connection like that:

p 1
binding.bp
[master]$ exe/rdbg -O target.rb -n
DEBUGGER: Session start (pid: 11257)
DEBUGGER: Debugger can attach via UNIX domain socket (/home/ko1/.ruby-debug-sock/ruby-debug-ko1-11257)
1
DEBUGGER: wait for debuger connection...

However, other deubgers like gdb doesn't stop (from the beginning, the detached process is not under control by gdb).

I think there is a case to wait remote console connection, but not sure which is majority.

Make a configuration?

  • global configuration (which should be a default?)
  • binding.bp option (wait_attach: true/false)
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.