debug
debug copied to clipboard
Should not suspend on detached mode
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.bpoption (wait_attach: true/false)