lib/ruby-debug/command.rb in ruby-debug-ide-0.1.8 vs lib/ruby-debug/command.rb in ruby-debug-ide-0.1.9

- old
+ new

@@ -90,12 +90,13 @@ end def debug_eval(str, b = get_binding) begin max_time = 10 + to_inspect = str.gsub(/\\n/, "\n") @printer.print_debug("Evaluating with timeout after %i sec", max_time) timeout(max_time) do - eval(str, b) + eval(to_inspect, b) end rescue StandardError, ScriptError => e @printer.print_exception(e, @state.binding) throw :debug_error end