| 831 | |
| 832 | |
| 833 | bool 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 | |
| 851 | bool DebuggerController::DisconnectDebugServer() |
nothing calls this directly
no test coverage detected