You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -504,6 +504,7 @@ config set no_color true
504
504
*`RUBY_DEBUG_LOCAL_FS_MAP` (`local_fs_map`): Specify local fs map
505
505
*`RUBY_DEBUG_SKIP_BP` (`skip_bp`): Skip breakpoints if no clients are attached (default: false)
506
506
*`RUBY_DEBUG_COOKIE` (`cookie`): Cookie for negotiation
507
+
*`RUBY_DEBUG_SESSION_NAME` (`session_name`): Session name for differentiating multiple sessions
507
508
*`RUBY_DEBUG_CHROME_PATH` (`chrome_path`): Platform dependent path of Chrome (For more information, See [here](https://github.com/ruby/debug/pull/334/files#diff-5fc3d0a901379a95bc111b86cf0090b03f857edfd0b99a0c1537e26735698453R55-R64))
508
509
509
510
* OBSOLETE
@@ -883,6 +884,7 @@ Debug console mode:
883
884
--port=PORT Listening TCP/IP port
884
885
--host=HOST Listening TCP/IP host
885
886
--cookie=COOKIE Set a cookie for connection
887
+
--session-name=NAME Session name
886
888
887
889
Debug console mode runs Ruby program with the debug console.
Copy file name to clipboardexpand all lines: lib/debug/config.rb
+8-1
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ module DEBUGGER__
49
49
local_fs_map: ['RUBY_DEBUG_LOCAL_FS_MAP',"REMOTE: Specify local fs map",:path_map],
50
50
skip_bp: ['RUBY_DEBUG_SKIP_BP',"REMOTE: Skip breakpoints if no clients are attached",:bool,'false'],
51
51
cookie: ['RUBY_DEBUG_COOKIE',"REMOTE: Cookie for negotiation"],
52
+
session_name: ['RUBY_DEBUG_SESSION_NAME',"REMOTE: Session name for differentiating multiple sessions"],
52
53
chrome_path: ['RUBY_DEBUG_CHROME_PATH',"REMOTE: Platform dependent path of Chrome (For more information, See [here](https://github.com/ruby/debug/pull/334/files#diff-5fc3d0a901379a95bc111b86cf0090b03f857edfd0b99a0c1537e26735698453R55-R64))"],
53
54
54
55
# obsolete
@@ -340,6 +341,9 @@ def self.parse_argv argv
340
341
o.on('--cookie=COOKIE','Set a cookie for connection')do |c|
0 commit comments