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

Method jumpToLine

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

Source from the content-addressed store, hash-verified

526}
527
528void DAPDebugger::jumpToLine(const QString &filePath, int lineNumber)
529{
530 if (!d->currentSession)
531 return;
532
533 dap::Source source;
534 source.path = filePath.toStdString();
535
536 if (d->runState == kStopped || d->runState == kRunning) {
537 auto response = d->currentSession->gotoTargets(source, lineNumber, 0);
538 for (auto target : response.value().targets) {
539 if (target.label == QString("%1:%2").arg(filePath, QString::number(lineNumber)).toStdString()) {
540 d->currentSession->goto_(d->threadId, target.id);
541 }
542 }
543 }
544}
545
546void DAPDebugger::runToLine(const QString &filePath, int lineNumber)
547{

Callers 1

showMarginMenuMethod · 0.45

Calls 5

numberClass · 0.85
QStringClass · 0.50
gotoTargetsMethod · 0.45
valueMethod · 0.45
goto_Method · 0.45

Tested by

no test coverage detected