| 544 | } |
| 545 | |
| 546 | void DAPDebugger::runToLine(const QString &filePath, int lineNumber) |
| 547 | { |
| 548 | if (!d->currentSession) |
| 549 | return; |
| 550 | |
| 551 | if (d->runState == kStopped) { |
| 552 | dap::array<IBreakpointData> rawBreakpoints; |
| 553 | IBreakpointData bpData; |
| 554 | bpData.id = QUuid::createUuid().toString().toStdString(); |
| 555 | bpData.lineNumber = lineNumber; |
| 556 | bpData.enabled = true; |
| 557 | bpData.hitCondition = "1"; |
| 558 | rawBreakpoints.push_back(bpData); |
| 559 | |
| 560 | debugService->addBreakpoints(filePath, rawBreakpoints, d->currentSession); |
| 561 | continueDebug(); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | void DAPDebugger::evaluateWatchVariable(const QString &expression) |
| 566 | { |
no test coverage detected