| 231 | } |
| 232 | |
| 233 | dap::array<IBreakpoint> DebugModel::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression) |
| 234 | { |
| 235 | for (auto bp = breakPoints.begin(); bp != breakPoints.end(); ) { |
| 236 | if (bp->lineNumber() == lineNumber |
| 237 | && bp->uri().toString() == filePath) { |
| 238 | bp->condition = expression.toStdString(); |
| 239 | break; |
| 240 | } else { |
| 241 | ++bp; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | dap::array<IBreakpoint> retBreakpoints; |
| 246 | for (auto bp : breakPoints) { |
| 247 | auto ibp = convertToIBreakpoint(bp); |
| 248 | retBreakpoints.push_back(ibp); |
| 249 | } |
| 250 | return retBreakpoints; |
| 251 | // fire event. |
| 252 | } |
| 253 | |
| 254 | void DebugModel::updateBreakpoints(std::map<dap::string, IBreakpointUpdateData> &data) |
| 255 | { |
nothing calls this directly
no test coverage detected