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

Method runToLine

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

Source from the content-addressed store, hash-verified

544}
545
546void 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
565void DAPDebugger::evaluateWatchVariable(const QString &expression)
566{

Callers 1

showMarginMenuMethod · 0.80

Calls 2

toStringMethod · 0.45
addBreakpointsMethod · 0.45

Tested by

no test coverage detected