| 1027 | |
| 1028 | |
| 1029 | void DebuggerController::LaunchOrConnect() |
| 1030 | { |
| 1031 | std::string adapter = m_state->GetAdapterType(); |
| 1032 | auto adapterType = DebugAdapterType::GetByName(adapter); |
| 1033 | if (!adapterType) |
| 1034 | return; |
| 1035 | |
| 1036 | if (adapterType->CanExecute(GetData())) |
| 1037 | Launch(); |
| 1038 | else if (adapterType->CanConnect(GetData())) |
| 1039 | Connect(); |
| 1040 | } |
| 1041 | |
| 1042 | |
| 1043 | // Can't use a vector here as initialization order is not guaranteed. |
no test coverage detected