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

Method LaunchOrConnect

core/debuggercontroller.cpp:1029–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027
1028
1029void 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.

Callers 1

Calls 3

GetAdapterTypeMethod · 0.45
CanExecuteMethod · 0.45
CanConnectMethod · 0.45

Tested by

no test coverage detected