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

Method sendInstructionBreakpoints

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

Source from the content-addressed store, hash-verified

620}
621
622void DebugSession::sendInstructionBreakpoints(dap::array<IInstructionBreakpoint> instructionBreakpoints)
623{
624 if (!raw)
625 return;
626
627 if (!raw->readyForBreakpoints()) {
628 qInfo() << "break point not ready!";
629 return;
630 }
631
632 if (raw->readyForBreakpoints()) {
633 SetInstructionBreakpointsRequest request;
634 auto response = raw->setInstructionBreakpoints(request);
635 if (response.valid()) {
636 auto data = std::map<dap::string, dap::Breakpoint>();
637 for (size_t i = 0; i < instructionBreakpoints.size(); ++i) {
638 data.insert(std::pair<dap::string, dap::Breakpoint>(instructionBreakpoints[i].getId(), response.get().response.breakpoints[i]));
639 }
640
641 model->setBreakpointSessionData(id, capabilities(), data);
642 }
643 }
644}
645
646dap::optional<dap::Breakpoint> DebugSession::getDebugProtocolBreakpoint(string &breakpointId)
647{

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