File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
ruby-debug-ide/multiprocess Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8282# save script name
8383Debugger ::PROG_SCRIPT = ARGV . shift
8484
85- if ( options . dispatcher_port != -1 )
85+ if options . dispatcher_port != -1
8686 ENV [ 'IDE_PROCESS_DISPATCHER' ] = options . dispatcher_port . to_s
8787 if RUBY_VERSION < "1.9"
8888 $: << File . expand_path ( File . dirname ( __FILE__ ) + "/../lib/" )
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def start_control(host, port)
112112 while ( session = server . accept )
113113 $stderr. puts "Connected from #{ session . peeraddr [ 2 ] } " if Debugger . cli_debug
114114 dispatcher = ENV [ 'IDE_PROCESS_DISPATCHER' ]
115- if ( dispatcher )
115+ if dispatcher
116116 ENV [ 'IDE_PROCESS_DISPATCHER' ] = "#{ session . peeraddr [ 2 ] } :#{ dispatcher } " unless dispatcher . include? ( ":" )
117117 ENV [ 'DEBUGGER_HOST' ] = host
118118 end
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ module MultiProcess
33 class << self
44 def pre_child
55
6- require " socket"
7- require " ostruct"
6+ require ' socket'
7+ require ' ostruct'
88
99 host = ENV [ 'DEBUGGER_HOST' ]
1010 port = find_free_port ( host )
@@ -42,7 +42,7 @@ def pre_child
4242
4343 def start_debugger ( options )
4444 if Debugger . started?
45- #we're in forked child, only need to restart control thread
45+ # we're in forked child, only need to restart control thread
4646 Debugger . breakpoints . clear
4747 Debugger . control_thread = nil
4848 Debugger . start_control ( options . host , options . port )
You can’t perform that action at this time.
0 commit comments