| 191 | } |
| 192 | |
| 193 | dap::array<IBreakpoint> DebugModel::removeBreakpoint(const QString &filePath, int lineNumber) |
| 194 | { |
| 195 | for (auto bp = breakPoints.begin(); bp != breakPoints.end(); ) { |
| 196 | if (bp->lineNumber() == lineNumber |
| 197 | && bp->uri().toString() == filePath) { |
| 198 | bp = breakPoints.erase(bp); |
| 199 | } else { |
| 200 | ++bp; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | dap::array<IBreakpoint> retBreakpoints; |
| 205 | for (auto bp : breakPoints) { |
| 206 | auto ibp = convertToIBreakpoint(bp); |
| 207 | retBreakpoints.push_back(ibp); |
| 208 | } |
| 209 | return retBreakpoints; |
| 210 | } |
| 211 | |
| 212 | dap::array<IBreakpoint> DebugModel::switchBreakpointStatus(const QString &filePath, int lineNumber, bool status) |
| 213 | { |
no test coverage detected