debug icon indicating copy to clipboard operation
debug copied to clipboard

Should not suspend on detached mode

Open ko1 opened this issue 4 years ago • 0 comments

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)

ko1 avatar Jul 10 '21 16:07 ko1