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 82
82
# save script name
83
83
Debugger ::PROG_SCRIPT = ARGV . shift
84
84
85
- if ( options . dispatcher_port != -1 )
85
+ if options . dispatcher_port != -1
86
86
ENV [ 'IDE_PROCESS_DISPATCHER' ] = options . dispatcher_port . to_s
87
87
if RUBY_VERSION < "1.9"
88
88
$: << 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)
112
112
while ( session = server . accept )
113
113
$stderr. puts "Connected from #{ session . peeraddr [ 2 ] } " if Debugger . cli_debug
114
114
dispatcher = ENV [ 'IDE_PROCESS_DISPATCHER' ]
115
- if ( dispatcher )
115
+ if dispatcher
116
116
ENV [ 'IDE_PROCESS_DISPATCHER' ] = "#{ session . peeraddr [ 2 ] } :#{ dispatcher } " unless dispatcher . include? ( ":" )
117
117
ENV [ 'DEBUGGER_HOST' ] = host
118
118
end
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ module MultiProcess
3
3
class << self
4
4
def pre_child
5
5
6
- require " socket"
7
- require " ostruct"
6
+ require ' socket'
7
+ require ' ostruct'
8
8
9
9
host = ENV [ 'DEBUGGER_HOST' ]
10
10
port = find_free_port ( host )
@@ -42,7 +42,7 @@ def pre_child
42
42
43
43
def start_debugger ( options )
44
44
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
46
46
Debugger . breakpoints . clear
47
47
Debugger . control_thread = nil
48
48
Debugger . start_control ( options . host , options . port )
You can’t perform that action at this time.
0 commit comments