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

Method switchBreakpointsStatus

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

Source from the content-addressed store, hash-verified

492}
493
494void DAPDebugger::switchBreakpointsStatus(const QString &filePath, int lineNumber, bool enabled)
495{
496 Internal::Breakpoint bp;
497 bp.filePath = filePath;
498 bp.fileName = QFileInfo(filePath).fileName();
499 bp.lineNumber = lineNumber;
500 bp.enabled = enabled;
501 d->breakpointModel.switchBreakpointStatus(bp);
502
503 // send to backend.
504 if (d->runState == kStopped || d->runState == kRunning) {
505 debugService->switchBreakpointStatus(filePath, lineNumber, enabled, d->currentSession);
506 } else {
507 debugService->switchBreakpointStatus(filePath, lineNumber, enabled, undefined);
508 }
509}
510
511void DAPDebugger::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression)
512{

Callers

nothing calls this directly

Calls 2

fileNameMethod · 0.80

Tested by

no test coverage detected