MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / sendFunctionBreakpoints

Method sendFunctionBreakpoints

src/plugins/debugger/dap/debugsession.cpp:537–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void 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
560void DebugSession::sendExceptionBreakpoints(dap::array<IExceptionBreakpoint> &exbpts) {
561 Q_UNUSED(exbpts)

Callers

nothing calls this directly

Calls 8

readyForBreakpointsMethod · 0.80
insertMethod · 0.80
validMethod · 0.45
sizeMethod · 0.45
getIdMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected