1111$stdout. sync = true
1212
1313options = OpenStruct . new (
14- 'frame_bind' => false ,
15- 'host' => nil ,
16- 'load_mode' => false ,
17- 'port' => 1234 ,
18- 'stop' => false ,
19- 'tracing' => false ,
20- 'int_handler' => true ,
21- 'dispatcher_port' => -1 ,
22- 'evaluation_timeout' => 10 ,
23- 'rm_protocol_extensions' => false ,
24- 'catchpoint_deleted_event' => false ,
25- 'value_as_nested_element' => false ,
26- 'attach_mode' => false ,
27- 'cli_debug' => false
14+ 'frame_bind' => false ,
15+ 'host' => nil ,
16+ 'load_mode' => false ,
17+ 'port' => 1234 ,
18+ 'stop' => false ,
19+ 'tracing' => false ,
20+ 'int_handler' => true ,
21+ 'dispatcher_port' => -1 ,
22+ 'evaluation_timeout' => 10 ,
23+ 'rm_protocol_extensions' => false ,
24+ 'catchpoint_deleted_event' => false ,
25+ 'value_as_nested_element' => false ,
26+ 'attach_mode' => false ,
27+ 'cli_debug' => false
2828)
2929
3030opts = OptionParser . new do |opts |
@@ -36,20 +36,25 @@ Usage: rdebug-ide is supposed to be called from RDT, NetBeans, RubyMine, or
3636EOB
3737 opts . separator ""
3838 opts . separator "Options:"
39-
39+
40+ Debugger . trace_to_s = true
41+ opts . on ( "--evaluation-control" , "trace to_s evaluation" ) do
42+ Debugger . trace_to_s = true
43+ end
44+
4045 ENV [ 'DEBUGGER_MEMORY_LIMIT' ] = '10'
41- opts . on ( "-m" , "--memory-limit LIMIT" , Integer , "evaluation memory limit in mb (default: 10)" ) do |limit |
42- ENV [ 'DEBUGGER_MEMORY_LIMIT' ] = limit
46+ opts . on ( "-m" , "--memory-limit LIMIT" , Integer , "evaluation memory limit in mb (default: 10)" ) do |limit |
47+ ENV [ 'DEBUGGER_MEMORY_LIMIT' ] = limit . to_s
4348 end
44-
49+
4550 ENV [ 'INSPECT_TIME_LIMIT' ] = '100'
46- opts . on ( "-t" , "--time-limit LIMIT" , Integer , "evaluation time limit in milliseconds (default: 100)" ) do |limit |
47- ENV [ 'INSPECT_TIME_LIMIT' ] = limit
51+ opts . on ( "-t" , "--time-limit LIMIT" , Integer , "evaluation time limit in milliseconds (default: 100)" ) do |limit |
52+ ENV [ 'INSPECT_TIME_LIMIT' ] = limit . to_s
4853 end
4954
5055 opts . on ( "-h" , "--host HOST" , "Host name used for remote debugging" ) { |host | options . host = host }
5156 opts . on ( "-p" , "--port PORT" , Integer , "Port used for remote debugging" ) { |port | options . port = port }
52- opts . on ( "--dispatcher-port PORT" , Integer , "Port used for multi-process debugging dispatcher" ) do |dp |
57+ opts . on ( "--dispatcher-port PORT" , Integer , "Port used for multi-process debugging dispatcher" ) do |dp |
5358 options . dispatcher_port = dp
5459 end
5560 opts . on ( '--evaluation-timeout TIMEOUT' , Integer , 'evaluation timeout in seconds (default: 10)' ) do |timeout |
@@ -133,7 +138,7 @@ if options.dispatcher_port != -1
133138 end
134139 Debugger ::MultiProcess . do_monkey
135140
136- ENV [ 'DEBUGGER_STORED_RUBYLIB' ] = ENV [ 'RUBYLIB' ]
141+ ENV [ 'DEBUGGER_STORED_RUBYLIB' ] = ENV [ 'RUBYLIB' ]
137142 old_opts = ENV [ 'RUBYOPT' ] || ''
138143 starter = "-r#{ File . expand_path ( File . dirname ( __FILE__ ) ) } /../lib/ruby-debug-ide/multiprocess/starter"
139144 unless old_opts . include? starter
0 commit comments