module DEBUGGER__

def self.open_tcp host: nil, port:, nonstop: false, **kw

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