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

Method setBreakpointCondition

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

Source from the content-addressed store, hash-verified

231}
232
233dap::array<IBreakpoint> DebugModel::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression)
234{
235 for (auto bp = breakPoints.begin(); bp != breakPoints.end(); ) {
236 if (bp->lineNumber() == lineNumber
237 && bp->uri().toString() == filePath) {
238 bp->condition = expression.toStdString();
239 break;
240 } else {
241 ++bp;
242 }
243 }
244
245 dap::array<IBreakpoint> retBreakpoints;
246 for (auto bp : breakPoints) {
247 auto ibp = convertToIBreakpoint(bp);
248 retBreakpoints.push_back(ibp);
249 }
250 return retBreakpoints;
251 // fire event.
252}
253
254void DebugModel::updateBreakpoints(std::map<dap::string, IBreakpointUpdateData> &data)
255{

Callers

nothing calls this directly

Calls 6

convertToIBreakpointFunction · 0.85
uriMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
lineNumberMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected