MCPcopy Create free account
hub / github.com/Vector35/debugger / ConnectToDebugServer

Method ConnectToDebugServer

core/debuggercontroller.cpp:833–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831
832
833bool DebuggerController::ConnectToDebugServer()
834{
835 if (m_state->IsConnectedToDebugServer())
836 return true;
837
838 if (!CreateDebugAdapter())
839 return false;
840
841 bool ok = m_adapter->ConnectToDebugServer(m_state->GetRemoteHost(), m_state->GetRemotePort());
842 if (!ok)
843 LogWarn("Failed to connect to the debug server");
844 else
845 m_state->SetConnectedToDebugServer(true);
846
847 return ok;
848}
849
850
851bool DebuggerController::DisconnectDebugServer()

Callers

nothing calls this directly

Calls 4

GetRemoteHostMethod · 0.45
GetRemotePortMethod · 0.45

Tested by

no test coverage detected