diff --git a/lib/ruby-debug-ide/command.rb b/lib/ruby-debug-ide/command.rb index ecbd2ba..b5588d8 100644 --- a/lib/ruby-debug-ide/command.rb +++ b/lib/ruby-debug-ide/command.rb @@ -124,7 +124,7 @@ def timeout(sec) def debug_eval(str, b = get_binding) begin - str = str.to_s + str = str.to_s.dup str.force_encoding('UTF-8') if(RUBY_VERSION >= '2.0') to_inspect = Command.unescape_incoming(str) max_time = Debugger.evaluation_timeout