bin/rdebug-ide in ruby-debug-ide-0.6.1 vs bin/rdebug-ide in ruby-debug-ide-0.7.0.beta2

- old
+ new

@@ -129,9 +129,17 @@ Debugger::PROG_SCRIPT = ARGV.shift else Debugger::PROG_SCRIPT = $0 end +if RUBY_VERSION < "1.9" + lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib/") + $: << lib_path unless $:.include? lib_path + require 'ruby-debug-ide/thread_alias.rb' +else + require_relative '../lib/ruby-debug-ide/thread_alias' +end + if options.dispatcher_port != -1 ENV['IDE_PROCESS_DISPATCHER'] = options.dispatcher_port.to_s if RUBY_VERSION < "1.9" lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib/") $: << lib_path unless $:.include? lib_path