| 16 | } |
| 17 | |
| 18 | void 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 | |
| 38 | dap::array<IBreakpoint> DebugService::addBreakpoints( |
| 39 | QUrl uri, dap::array<IBreakpointData> rawBreakpoints, dap::optional<DebugSession *> session) |
no test coverage detected