Skip to content

Commit

Permalink
Change socket prefix/suffix to session name
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjeffries committed Nov 7, 2023
1 parent c0f5880 commit a751ab3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/debug/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a751ab3

Please sign in to comment.