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

Function convertTodbp

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

Source from the content-addressed store, hash-verified

581}
582
583void convertTodbp(const array<IDataBreakpoint> &dataBreakpoints, array<DataBreakpoint> &result)
584{
585 for (auto bp : dataBreakpoints) {
586 DataBreakpoint dbp;
587 dbp.accessType = bp.accessType;
588 // An optional expression for conditional breakpoints.
589 dbp.condition = bp.condition;
590 // An id representing the data. This id is returned from the
591 // dataBreakpointInfo request.
592 dbp.dataId = bp.dataId;
593 // An optional expression that controls how many hits of the breakpoint are
594 // ignored. The backend is expected to interpret the expression as needed.
595 dbp.hitCondition = bp.hitCondition;
596 result.push_back(dbp);
597 }
598}
599
600void DebugSession::sendDataBreakpoints(dap::array<IDataBreakpoint> dataBreakpoints)
601{

Callers 1

sendDataBreakpointsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected