| 468 | } |
| 469 | |
| 470 | void DAPDebugger::removeBreakpoint(const QString &filePath, int lineNumber) |
| 471 | { |
| 472 | // update model here. |
| 473 | Internal::Breakpoint bp; |
| 474 | bp.filePath = filePath; |
| 475 | bp.fileName = QFileInfo(filePath).fileName(); |
| 476 | bp.lineNumber = lineNumber; |
| 477 | d->breakpointModel.removeBreakpoint(bp); |
| 478 | |
| 479 | // send to backend. |
| 480 | if (d->runState == kStopped || d->runState == kRunning) { |
| 481 | debugService->removeBreakpoints(filePath, lineNumber, d->currentSession); |
| 482 | } else { |
| 483 | debugService->removeBreakpoints(filePath, lineNumber, undefined); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | void DAPDebugger::removeAllBreakpoints() |
| 488 | { |
nothing calls this directly
no test coverage detected