Method: Debugger::MultiProcess.pre_child

Defined in:
lib/ruby-debug-ide/multiprocess/pre_child.rb

.pre_childObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/ruby-debug-ide/multiprocess/pre_child.rb', line 4

def pre_child

  require 'socket'
  require 'ostruct'

  host = ENV['DEBUGGER_HOST']
  port = find_free_port(host)

  options = OpenStruct.new(
      'frame_bind'  => false,
      'host'        => host,
      'load_mode'   => false,
      'port'        => port,
      'stop'        => false,
      'tracing'     => false,
      'int_handler' => true,
      'cli_debug'   => (ENV['DEBUGGER_CLI_DEBUG'] == 'true'),
      'notify_dispatcher' => true
  )

  start_debugger(options)
end