Sha256: 43246cf0d2e921bff21d6b8a2769440d6074f5fabcc236d045b362b4060e1aba

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

if RUBY_VERSION < '1.9'
  require 'ruby-debug-ide/multiprocess/pre_child'
else
  require_relative 'multiprocess/pre_child'
end

module Debugger
  module MultiProcess
    class << self
      def do_monkey
        load File.expand_path(File.dirname(__FILE__) + '/multiprocess/monkey.rb')
      end

      def undo_monkey
        if ENV['IDE_PROCESS_DISPATCHER']
          load File.expand_path(File.dirname(__FILE__) + '/multiprocess/unmonkey.rb')
          ruby_opts = ENV['RUBYOPT'].split(' ')
          ENV['RUBYOPT'] = ruby_opts.keep_if {|opt| !opt.end_with?('ruby-debug-ide/multiprocess/starter')}.join(' ')
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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