Module: DEBUGGER__::ForkInterceptor::DaemonInterceptor

Defined in:
lib/debug/session.rb

Instance Method Summary collapse

Instance Method Details

#daemonObject



2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
# File 'lib/debug/session.rb', line 2441

def daemon
  return super unless defined?(SESSION) && SESSION.active?

  _, child_hook = __fork_setup_for_debugger(:child)

  unless SESSION.remote?
    DEBUGGER__.warn "Can't debug the code after Process.daemon locally. Use the remote debugging feature."
  end

  super.tap do
    child_hook.call
  end
end