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

Method removeBreakpoints

src/plugins/debugger/interface/breakpointview.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void BreakpointView::removeBreakpoints(const QModelIndexList &rows)
131{
132 BreakpointModel *bpModel = static_cast<BreakpointModel *>(model());
133 QStringList openedFiles = editService->openedFiles();
134 for (auto row : rows) {
135 auto bp = bpModel->BreakpointAt(row.row());
136 if (openedFiles.contains(bp.filePath))
137 editor.removeBreakpoint(bp.filePath, bp.lineNumber - 1);
138 else
139 editor.breakpointRemoved(bp.filePath, bp.lineNumber - 1);
140 }
141}
142
143void BreakpointView::editBreakpointCondition(const QModelIndex &index)
144{

Callers

nothing calls this directly

Calls 5

modelClass · 0.85
rowMethod · 0.80
openedFilesMethod · 0.45
containsMethod · 0.45
removeBreakpointMethod · 0.45

Tested by

no test coverage detected