ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

`session_name` config #1036

Closed ko1 closed 1 year ago

ko1 commented 1 year ago

to allow multiple debug sessions.

Now session name is used to name UNIX domain socket file name.

$ exe/rdbg -O target.rb --session-name=hoge
DEBUGGER: Debugger can attach via UNIX domain socket (/run/user/1000/rdbg-230122-hoge)
$ RUBY_DEBUG_SESSION_NAME=fuga exe/rdbg -O target.rb
DEBUGGER: Debugger can attach via UNIX domain socket (/run/user/1000/rdbg-230150-fuga)

Co-authored-by: Andy Jeffries andy@andyjeffries.co.uk

This PR is rewritten of #1017