Module: DEBUGGER__::ForkInterceptor::DaemonInterceptor

Defined in:
lib/debug/session.rb

Instance Method Summary collapse

Instance Method Details

#daemon(*args) ⇒ Object



2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
# File 'lib/debug/session.rb', line 2486

def daemon(*args)
  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