123456789_123456789_123456789_123456789_123456789_

Module: DEBUGGER__::ForkInterceptor::DaemonInterceptor

Relationships & Source Files
Defined in: lib/debug/session.rb

Instance Method Summary

Instance Method Details

#daemon

[ GitHub ]

  
# 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