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

Method sendAllBreakpoints

src/plugins/debugger/dap/debugservice.cpp:18–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void DebugService::sendAllBreakpoints(DebugSession *session)
19{
20#if 0 // breakpoint type not supported now.
21 sendBreakpoints(undefined, session, false);
22 sendFunctionBreakpoints(session);
23 sendDataBreakpoints(session);
24 sendInstructionBreakpoints(session);
25 // send exception breakpoints at the end since some debug adapters rely on the order
26 sendExceptionBreakpoints(session);
27#endif
28
29 // remove all previous breakpoints.
30 sendBreakpoints({}, session);
31
32 auto breakpoints = model->getAllBreakpoints();
33 for (auto it = breakpoints.begin(); it != breakpoints.end(); ++it) {
34 sendBreakpoints(it.key(), session);
35 }
36}
37
38dap::array<IBreakpoint> DebugService::addBreakpoints(
39 QUrl uri, dap::array<IBreakpointData> rawBreakpoints, dap::optional<DebugSession *> session)

Callers 1

registerDapHandlersMethod · 0.80

Calls 4

getAllBreakpointsMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected