Skip to content

Commit 7a6edb3

Browse files
committed
cleanup
1 parent a8f6237 commit 7a6edb3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/rdebug-ide

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ EOB
3737
opts.separator ""
3838
opts.separator "Options:"
3939

40-
Debugger.trace_to_s = true
40+
Debugger.trace_to_s = false
4141
opts.on("--evaluation-control", "trace to_s evaluation") do
4242
Debugger.trace_to_s = true
4343
end

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ def exec_with_timeout(sec)
189189
end
190190

191191
def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_message_type)
192-
return exec_with_timeout(time_limit * 1e-3) {value.send exec_method} if defined?(JRUBY_VERSION) || memory_limit <= 0 || (RUBY_VERSION < '2.0' && time_limit > 0)
193192
return value.send exec_method if !Debugger.trace_to_s
193+
return exec_with_timeout(time_limit * 1e-3) {value.send exec_method} if defined?(JRUBY_VERSION) || memory_limit <= 0 || (RUBY_VERSION < '2.0' && time_limit > 0)
194+
194195

195196
curr_thread = Thread.current
196197
control_thread = Debugger.control_thread

0 commit comments

Comments
 (0)