| 492 | } |
| 493 | |
| 494 | void 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 | |
| 511 | void DAPDebugger::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression) |
| 512 | { |
nothing calls this directly
no test coverage detected