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

Method setBreakpointSessionData

src/plugins/debugger/dap/debugmodel.cpp:274–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void DebugModel::setBreakpointSessionData(dap::string &sessionId, const dap::Capabilities &capabilites, dap::optional<std::map<dap::string, dap::Breakpoint>> data)
275{
276 for (auto bp : breakPoints) {
277 if (!data) {
278 bp.setSessionData(sessionId, undefined);
279 } else {
280 auto bpData = data.value().find(bp.getId());
281 if (bpData != data->end()) {
282 // TODO(mozart):write session data.
283 bp.setSessionData(sessionId, undefined);
284 }
285 }
286 }
287}
288
289dap::optional<dap::Breakpoint> DebugModel::getDebugProtocolBreakpoint(
290 dap::string &breakpointId, dap::string &sessionId)

Callers 4

sendBreakpointsMethod · 0.80
sendDataBreakpointsMethod · 0.80

Calls 5

setSessionDataMethod · 0.45
findMethod · 0.45
valueMethod · 0.45
getIdMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected