| 210 | } |
| 211 | |
| 212 | dap::array<IBreakpoint> DebugModel::switchBreakpointStatus(const QString &filePath, int lineNumber, bool status) |
| 213 | { |
| 214 | for (auto bp = breakPoints.begin(); bp != breakPoints.end(); ) { |
| 215 | if (bp->lineNumber() == lineNumber |
| 216 | && bp->uri().toString() == filePath) { |
| 217 | bp->enabled = status; |
| 218 | break; |
| 219 | } else { |
| 220 | ++bp; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | dap::array<IBreakpoint> retBreakpoints; |
| 225 | for (auto bp : breakPoints) { |
| 226 | auto ibp = convertToIBreakpoint(bp); |
| 227 | retBreakpoints.push_back(ibp); |
| 228 | } |
| 229 | return retBreakpoints; |
| 230 | // fire event. |
| 231 | } |
| 232 | |
| 233 | dap::array<IBreakpoint> DebugModel::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression) |
| 234 | { |
no test coverage detected