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

Method addBreakpoints

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

Source from the content-addressed store, hash-verified

173}
174
175dap::array<IBreakpoint> DebugModel::addBreakpoints(
176 QUrl &uri, dap::array<IBreakpointData> &rawData, bool fireEvent)
177{
178 Q_UNUSED(uri)
179 Q_UNUSED(fireEvent)
180
181 dap::array<IBreakpoint> retBreakpoints;
182 for (auto rawBp : rawData) {
183 Breakpoint bp(uri, rawBp.lineNumber.value(), rawBp.column, rawBp.enabled,
184 rawBp.condition, rawBp.hitCondition, rawBp.logMessage, undefined, rawBp.id.value());
185 auto ibp = convertToIBreakpoint(bp);
186 retBreakpoints.push_back(ibp);
187 breakPoints.push_back(bp);
188 }
189
190 return retBreakpoints;
191}
192
193dap::array<IBreakpoint> DebugModel::removeBreakpoint(const QString &filePath, int lineNumber)
194{

Callers 2

addBreakpointMethod · 0.45
runToLineMethod · 0.45

Calls 2

convertToIBreakpointFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected