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

Method switchBreakpointStatus

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

Source from the content-addressed store, hash-verified

210}
211
212dap::array<IBreakpoint> DebugModel::switchBreakpointStatus(const QString &filePath, int lineNumber, bool status)
213{
214 for (auto bp = breakPoints.begin(); bp != breakPoints.end(); ) {
215 if (bp->lineNumber() == lineNumber
216 && bp->uri().toString() == filePath) {
217 bp->enabled = status;
218 break;
219 } else {
220 ++bp;
221 }
222 }
223
224 dap::array<IBreakpoint> retBreakpoints;
225 for (auto bp : breakPoints) {
226 auto ibp = convertToIBreakpoint(bp);
227 retBreakpoints.push_back(ibp);
228 }
229 return retBreakpoints;
230 // fire event.
231}
232
233dap::array<IBreakpoint> DebugModel::setBreakpointCondition(const QString &filePath, int lineNumber, const QString &expression)
234{

Callers 1

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