模块 DEBUGGER__::ForkInterceptor::DaemonInterceptor

公共实例方法

daemon(*args) 点击切换源代码
调用父类方法
# File debug-1.10.0/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