MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / startDebug

Method startDebug

src/plugins/debugger/dap/dapdebugger.cpp:211–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void DAPDebugger::startDebug()
212{
213 d->isRemote = false;
214 if (d->currentSession == d->remoteSession)
215 d->currentSession = d->localSession;
216
217 auto &ctx = dpfInstance.serviceContext();
218 LanguageService *service = ctx.service<LanguageService>(LanguageService::name());
219 if (service) {
220 auto generator = service->create<LanguageGenerator>(d->activeProjectKitName);
221 if (generator) {
222 updateRunState(kPreparing);
223 if (generator->isNeedBuild()) {
224 d->currentBuildUuid = requestBuild();
225 } else {
226 prepareDebug();
227 }
228 }
229 }
230}
231
232void DAPDebugger::startRerverseDebug(const QString &target)
233{

Callers 1

runMethod · 0.45

Calls 2

nameFunction · 0.50
isNeedBuildMethod · 0.45

Tested by

no test coverage detected