From a751ab36fa24a84b106de365a26b0be0f83985b4 Mon Sep 17 00:00:00 2001 From: Andy Jeffries Date: Tue, 7 Nov 2023 16:14:41 +0000 Subject: [PATCH] Change socket prefix/suffix to session name --- lib/debug/config.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/debug/config.rb b/lib/debug/config.rb index 90a4ba731..ce5a5562d 100644 --- a/lib/debug/config.rb +++ b/lib/debug/config.rb @@ -44,10 +44,9 @@ module DEBUGGER__ open: ['RUBY_DEBUG_OPEN', "REMOTE: Open remote port (same as `rdbg --open` option)"], port: ['RUBY_DEBUG_PORT', "REMOTE: TCP/IP remote debugging: port"], host: ['RUBY_DEBUG_HOST', "REMOTE: TCP/IP remote debugging: host", :string, "127.0.0.1"], + session_name: ['RUBY_DEBUG_SESSION_NAME' "REMOTE: Session name for differentiating multiple sessions"], sock_path: ['RUBY_DEBUG_SOCK_PATH', "REMOTE: UNIX Domain Socket remote debugging: socket path"], sock_dir: ['RUBY_DEBUG_SOCK_DIR', "REMOTE: UNIX Domain Socket remote debugging: socket directory"], - sock_suffix: ['RUBY_DEBUG_SOCK_SUFFIX', "REMOTE: UNIX Domain Socket remote debugging: socket suffix"], - sock_prefix: ['RUBY_DEBUG_SOCK_PREFIX', "REMOTE: UNIX Domain Socket remote debugging: socket prefix"], local_fs_map: ['RUBY_DEBUG_LOCAL_FS_MAP', "REMOTE: Specify local fs map", :path_map], skip_bp: ['RUBY_DEBUG_SKIP_BP', "REMOTE: Skip breakpoints if no clients are attached", :bool, 'false'], cookie: ['RUBY_DEBUG_COOKIE', "REMOTE: Cookie for negotiation"], @@ -499,12 +498,6 @@ def self.unix_domain_socket_dir def self.create_unix_domain_socket_name_prefix(base_dir = unix_domain_socket_dir) user = ENV['USER'] || 'UnknownUser' filename = "ruby-debug-#{user}" - if !CONFIG[:sock_prefix].nil? - filename = "#{CONFIG[:sock_prefix]}-#{filename}" - end - if !CONFIG[:sock_suffix].nil? - filename += "-#{CONFIG[:sock_suffix]}" - end File.join(base_dir, filename) end