Method: DEBUGGER__.open_tcp

Defined in:
lib/debug/session.rb

.open_tcp(host: nil, port:, nonstop: false, **kw) ⇒ Object



2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
# File 'lib/debug/session.rb', line 2235

def self.open_tcp host: nil, port:, nonstop: false, **kw
  CONFIG.set_config(**kw)
  require_relative 'server'

  if defined? SESSION
    SESSION.reset_ui UI_TcpServer.new(host: host, port: port)
  else
    initialize_session{ UI_TcpServer.new(host: host, port: port) }
  end

  setup_initial_suspend unless nonstop
end