File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
lib/ruby-debug-ide/multiprocess Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ if (options.dispatcher_port != -1)
9999 require_relative '../lib/ruby-debug-ide/multiprocess'
100100 end
101101
102+ ENV [ 'DEBUGGER_STORED_RUBYLIB' ] = ENV [ 'RUBYLIB' ]
102103 old_opts = ENV [ 'RUBYOPT' ]
103104 ENV [ 'RUBYOPT' ] = "-r#{ File . expand_path ( File . dirname ( __FILE__ ) ) } /../lib/ruby-debug-ide/multiprocess/starter"
104105 ENV [ 'RUBYOPT' ] += " #{ old_opts } " if old_opts
Original file line number Diff line number Diff line change 11if ENV [ 'IDE_PROCESS_DISPATCHER' ]
22 require 'rubygems'
3- $: << File . expand_path ( File . dirname ( __FILE__ ) ) + "../.."
3+ ENV [ 'DEBUGGER_STORED_RUBYLIB' ] . split ( File ::PATH_SEPARATOR ) . each do |path |
4+ next unless path =~ /ruby-debug-ide|ruby-debug-base|linecache/
5+ $LOAD_PATH << path
6+ end
47 require 'ruby-debug-ide'
58 require 'ruby-debug-ide/multiprocess'
69 Debugger ::MultiProcess ::pre_child
You can’t perform that action at this time.
0 commit comments