Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions exe/rdbg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
require_relative '../lib/debug/config'
config = DEBUGGER__::Config::parse_argv(ARGV)

case config[:mode]
# mode is not an actual configuration option
# it's only used to carry the result of parse_argv here
case config.delete(:mode)
when :start
require 'rbconfig'

Expand All @@ -18,7 +20,7 @@ when :start

when :attach
require_relative "../lib/debug/client"
::DEBUGGER__::CONFIG.update config
::DEBUGGER__::CONFIG.set_config **config

begin
if ARGV.empty? && config[:port]
Expand Down