bin/rdebug-ide in ruby-debug-ide-0.6.1.beta8 vs bin/rdebug-ide in ruby-debug-ide-0.6.1.beta9
- old
+ new
@@ -9,24 +9,24 @@
end
$stdout.sync=true
options = OpenStruct.new(
- 'frame_bind' => false,
- 'host' => nil,
- 'load_mode' => false,
- 'port' => 1234,
- 'stop' => false,
- 'tracing' => false,
- 'int_handler' => true,
- 'dispatcher_port' => -1,
- 'evaluation_timeout' => 10,
- 'rm_protocol_extensions' => false,
- 'catchpoint_deleted_event' => false,
- 'value_as_nested_element' => false,
- 'attach_mode' => false,
- 'cli_debug' => false
+ 'frame_bind' => false,
+ 'host' => nil,
+ 'load_mode' => false,
+ 'port' => 1234,
+ 'stop' => false,
+ 'tracing' => false,
+ 'int_handler' => true,
+ 'dispatcher_port' => -1,
+ 'evaluation_timeout' => 10,
+ 'rm_protocol_extensions' => false,
+ 'catchpoint_deleted_event' => false,
+ 'value_as_nested_element' => false,
+ 'attach_mode' => false,
+ 'cli_debug' => false
)
opts = OptionParser.new do |opts|
opts.banner = <<EOB
Using ruby-debug-base #{Debugger::VERSION}
@@ -34,24 +34,29 @@
the IntelliJ IDEA Ruby plugin. The command line interface to
ruby-debug is rdebug.
EOB
opts.separator ""
opts.separator "Options:"
-
+
+ Debugger.trace_to_s = false
+ opts.on("--evaluation-control", "trace to_s evaluation") do
+ Debugger.trace_to_s = true
+ end
+
ENV['DEBUGGER_MEMORY_LIMIT'] = '10'
- opts.on("-m", "--memory-limit LIMIT", Integer, "evaluation memory limit in mb (default: 10)") do |limit|
- ENV['DEBUGGER_MEMORY_LIMIT'] = limit
+ opts.on("-m", "--memory-limit LIMIT", Integer, "evaluation memory limit in mb (default: 10)") do |limit|
+ ENV['DEBUGGER_MEMORY_LIMIT'] = limit.to_s
end
-
+
ENV['INSPECT_TIME_LIMIT'] = '100'
- opts.on("-t", "--time-limit LIMIT", Integer, "evaluation time limit in milliseconds (default: 100)") do |limit|
- ENV['INSPECT_TIME_LIMIT'] = limit
+ opts.on("-t", "--time-limit LIMIT", Integer, "evaluation time limit in milliseconds (default: 100)") do |limit|
+ ENV['INSPECT_TIME_LIMIT'] = limit.to_s
end
opts.on("-h", "--host HOST", "Host name used for remote debugging") {|host| options.host = host}
opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|port| options.port = port}
- opts.on("--dispatcher-port PORT", Integer, "Port used for multi-process debugging dispatcher") do |dp|
+ opts.on("--dispatcher-port PORT", Integer, "Port used for multi-process debugging dispatcher") do |dp|
options.dispatcher_port = dp
end
opts.on('--evaluation-timeout TIMEOUT', Integer,'evaluation timeout in seconds (default: 10)') do |timeout|
options.evaluation_timeout = timeout
end
@@ -131,10 +136,10 @@
else
require_relative '../lib/ruby-debug-ide/multiprocess'
end
Debugger::MultiProcess.do_monkey
- ENV['DEBUGGER_STORED_RUBYLIB'] = ENV['RUBYLIB']
+ ENV['DEBUGGER_STORED_RUBYLIB'] = ENV['RUBYLIB']
old_opts = ENV['RUBYOPT'] || ''
starter = "-r#{File.expand_path(File.dirname(__FILE__))}/../lib/ruby-debug-ide/multiprocess/starter"
unless old_opts.include? starter
ENV['RUBYOPT'] = starter
ENV['RUBYOPT'] += " #{old_opts}" if old_opts != ''