| 535 | } |
| 536 | |
| 537 | void DebugSession::sendFunctionBreakpoints(dap::array<IFunctionBreakpoint> &fbpts) |
| 538 | { |
| 539 | if (!raw) |
| 540 | return; |
| 541 | |
| 542 | if (!raw->readyForBreakpoints()) { |
| 543 | qInfo() << "break point not ready!"; |
| 544 | return; |
| 545 | } |
| 546 | SetFunctionBreakpointsRequest request; |
| 547 | if (raw->readyForBreakpoints()) { |
| 548 | auto response = raw->setFunctionBreakpoints(request); |
| 549 | if (response.valid()) { |
| 550 | auto data = std::map<dap::string, dap::Breakpoint>(); |
| 551 | for (size_t i = 0; i < fbpts.size(); ++i) { |
| 552 | data.insert(std::pair<dap::string, dap::Breakpoint>(fbpts[i].getId(), response.get().response.breakpoints[i])); |
| 553 | } |
| 554 | |
| 555 | model->setBreakpointSessionData(id, capabilities(), data); |
| 556 | } |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | void DebugSession::sendExceptionBreakpoints(dap::array<IExceptionBreakpoint> &exbpts) { |
| 561 | Q_UNUSED(exbpts) |
nothing calls this directly
no test coverage detected