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

Method startDebugRemote

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

Source from the content-addressed store, hash-verified

259}
260
261void DAPDebugger::startDebugRemote(const RemoteInfo &info)
262{
263 d->remoteInfo = info;
264 d->isRemote = true;
265
266 if (d->remoteSession)
267 delete d->remoteSession;
268
269 d->remoteSession = new DebugSession(debugService->getModel(), this);
270 d->remoteSession->setRemote(true);
271 d->remoteSession->setLocalProjectPath(getActiveProjectInfo().workspaceFolder());
272 d->remoteSession->setRemoteProjectPath(info.projectPath);
273
274 d->currentSession = d->remoteSession;
275 connect(d->currentSession, &DebugSession::sigRegisterHandlers, this, &DAPDebugger::registerDapHandlers, Qt::DirectConnection);
276
277 QMap<QString, QVariant> param;
278 param.insert("ip", info.ip);
279 param.insert("workspace", info.projectPath);
280 param.insert("targetPath", info.executablePath);
281 prepareDebug();
282
283 launchSession(info.port, param, d->activeProjectKitName);
284
285 updateRunState(kPreparing);
286}
287
288void DAPDebugger::attachDebug(const QString &processId)
289{

Callers

nothing calls this directly

Calls 6

connectFunction · 0.85
setRemoteMethod · 0.80
setLocalProjectPathMethod · 0.80
setRemoteProjectPathMethod · 0.80
insertMethod · 0.80
getModelMethod · 0.45

Tested by

no test coverage detected