From b2fd19d6a26ce3b2af52feefa589fd35991b2679 Mon Sep 17 00:00:00 2001 From: Robin Wenglewski Date: Wed, 6 Apr 2011 12:49:11 +0200 Subject: [PATCH] fix for: no such file to load -- script/rails --- lib/ruby-debug-ide.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide.rb b/lib/ruby-debug-ide.rb index 1ee535b..f78d5d0 100644 --- a/lib/ruby-debug-ide.rb +++ b/lib/ruby-debug-ide.rb @@ -119,7 +119,8 @@ def debug_program(options) @proceed.wait(@mutex) end - bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode) + abs_prog_script = File.absolute_path(Debugger::PROG_SCRIPT) + bt = debug_load(abs_prog_script, options.stop, options.load_mode) if bt $stderr.print bt.backtrace.map{|l| "\t#{l}"}.join("\n"), "\n" $stderr.print "Uncaught exception: #{bt}\n"