Should not suspend on detached mode

Open
#160 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
devtools

Research direction

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.

Written by the indexing model from the issue text.

Description

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)
Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.