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

Method LaunchAndWaitInternal

core/debuggercontroller.cpp:120–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120DebugStopReason DebuggerController::LaunchAndWaitInternal()
121{
122 if (Settings::Instance()->Get<bool>("debugger.safeMode"))
123 {
124 DebuggerEvent event;
125 event.type = LaunchFailureEventType;
126 event.data.errorData.shortError = "Safe mode enabled";
127 event.data.errorData.error =
128 fmt::format("Cannot launch the target because the debugger is in safe mode.");
129 PostDebuggerEvent(event);
130 return InternalError;
131 }
132
133 if (m_firstLaunch)
134 m_firstLaunch = false;
135
136 DebuggerEvent event;
137 event.type = LaunchEventType;
138 PostDebuggerEvent(event);
139
140 if (!CreateDebugAdapter())
141 return InternalError;
142
143 m_inputFileLoaded = false;
144 m_initialBreakpointSeen = false;
145 m_state->MarkDirty();
146 if (!CreateDebuggerBinaryView())
147 return InternalError;
148
149 return ExecuteAdapterAndWait(DebugAdapterLaunch);
150}
151
152
153DebugStopReason DebuggerController::LaunchAndWait()

Callers

nothing calls this directly

Calls 1

MarkDirtyMethod · 0.45

Tested by

no test coverage detected