Sha256: 42c9fcf3706e2684a4210305c648ada15024b27f082d044d3283aa5cf8dfd0bd

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

def load_debugger(gems_to_include, new_argv)
  path_to_rdebug = File.expand_path(File.dirname(__FILE__)) + '/../../../bin/rdebug-ide'

  old_argv = ARGV.clone
  ARGV.clear
  new_argv.each do |x|
    ARGV << x
  end

  gems_to_include.each do |gem_path|
    $LOAD_PATH.unshift(gem_path) unless $LOAD_PATH.include?(gem_path)
  end

  load path_to_rdebug
  
  ARGV.clear
  old_argv.each do |x|
    ARGV << x
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-ide22-0.7.4 lib/ruby-debug-ide/attach/debugger_loader.rb