| 259 | } |
| 260 | |
| 261 | void 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 | |
| 288 | void DAPDebugger::attachDebug(const QString &processId) |
| 289 | { |
nothing calls this directly
no test coverage detected