MCPcopy Create free account
hub / github.com/KDE/kdevelop / toggleBreakpoint

Method toggleBreakpoint

kdevplatform/shell/debugcontroller.cpp:608–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void DebugController::toggleBreakpoint()
609{
610 if (KDevelop::IDocument* document = KDevelop::ICore::self()->documentController()->activeDocument()) {
611 KTextEditor::Cursor cursor = document->cursorPosition();
612 if (!cursor.isValid()) return;
613 breakpointModel()->toggleBreakpoint(document->url(), cursor);
614 }
615}
616
617void DebugController::showCurrentLine()
618{

Callers

nothing calls this directly

Calls 6

breakpointModelFunction · 0.85
activeDocumentMethod · 0.80
documentControllerMethod · 0.80
cursorPositionMethod · 0.45
isValidMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected