Sha256: aa3e83b193d679d4d6c4ee23a287667486cbe1240fc3a10759ef7289ca50ea01

Contents?: true

Size: 1.11 KB

Versions: 63

Compression:

Stored size: 1.11 KB

Contents

module Debugger
  module MultiProcess
    def self.create_mp_fork(private=false)
      %Q{
        alias pre_debugger_fork fork
    
        #{private ? "private" : ""}
        def fork(*args)
          if block_given?
            return pre_debugger_fork{Debugger::MultiProcess::pre_child; yield}
          end
          result = pre_debugger_fork
          Debugger::MultiProcess::pre_child unless result
          result
        end
      }
    end

    def self.create_mp_exec(private=false)
      %Q{
        alias pre_debugger_exec exec
        
        #{private ? "private" : ""}
        def exec(*args)
          Debugger.interface.close
          pre_debugger_exec(*args)
        end
      }
    end
  end
end

module Kernel
  class << self
    module_eval Debugger::MultiProcess.create_mp_fork
    module_eval Debugger::MultiProcess.create_mp_exec
  end
  module_eval Debugger::MultiProcess.create_mp_fork(true)
  module_eval Debugger::MultiProcess.create_mp_exec(true)
end

module Process
  class << self
    module_eval Debugger::MultiProcess.create_mp_fork
    module_eval Debugger::MultiProcess.create_mp_exec
  end
end

Version data entries

63 entries across 55 versions & 5 rubygems

Version Path
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.3/lib/ruby-debug-ide/multiprocess/monkey.rb
ruby-debug-ide22-0.7.5 lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.3/lib/ruby-debug-ide/multiprocess/monkey.rb
ruby-debug-ide-0.7.3 lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/ruby-debug-ide-0.7.2/lib/ruby-debug-ide/multiprocess/monkey.rb
ruby-debug-ide-0.7.2 lib/ruby-debug-ide/multiprocess/monkey.rb
ruby-debug-ide-0.7.1.beta3 lib/ruby-debug-ide/multiprocess/monkey.rb
ruby-debug-ide-0.7.1.beta2 lib/ruby-debug-ide/multiprocess/monkey.rb