Skip to content

Commit a751ab3

Browse files
committed
Change socket prefix/suffix to session name
1 parent c0f5880 commit a751ab3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/debug/config.rb

+1-8
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ module DEBUGGER__
4444
open: ['RUBY_DEBUG_OPEN', "REMOTE: Open remote port (same as `rdbg --open` option)"],
4545
port: ['RUBY_DEBUG_PORT', "REMOTE: TCP/IP remote debugging: port"],
4646
host: ['RUBY_DEBUG_HOST', "REMOTE: TCP/IP remote debugging: host", :string, "127.0.0.1"],
47+
session_name: ['RUBY_DEBUG_SESSION_NAME' "REMOTE: Session name for differentiating multiple sessions"],
4748
sock_path: ['RUBY_DEBUG_SOCK_PATH', "REMOTE: UNIX Domain Socket remote debugging: socket path"],
4849
sock_dir: ['RUBY_DEBUG_SOCK_DIR', "REMOTE: UNIX Domain Socket remote debugging: socket directory"],
49-
sock_suffix: ['RUBY_DEBUG_SOCK_SUFFIX', "REMOTE: UNIX Domain Socket remote debugging: socket suffix"],
50-
sock_prefix: ['RUBY_DEBUG_SOCK_PREFIX', "REMOTE: UNIX Domain Socket remote debugging: socket prefix"],
5150
local_fs_map: ['RUBY_DEBUG_LOCAL_FS_MAP', "REMOTE: Specify local fs map", :path_map],
5251
skip_bp: ['RUBY_DEBUG_SKIP_BP', "REMOTE: Skip breakpoints if no clients are attached", :bool, 'false'],
5352
cookie: ['RUBY_DEBUG_COOKIE', "REMOTE: Cookie for negotiation"],
@@ -499,12 +498,6 @@ def self.unix_domain_socket_dir
499498
def self.create_unix_domain_socket_name_prefix(base_dir = unix_domain_socket_dir)
500499
user = ENV['USER'] || 'UnknownUser'
501500
filename = "ruby-debug-#{user}"
502-
if !CONFIG[:sock_prefix].nil?
503-
filename = "#{CONFIG[:sock_prefix]}-#{filename}"
504-
end
505-
if !CONFIG[:sock_suffix].nil?
506-
filename += "-#{CONFIG[:sock_suffix]}"
507-
end
508501
File.join(base_dir, filename)
509502
end
510503

0 commit comments

Comments
 (0)