| 382 | } |
| 383 | |
| 384 | void DebugController::showStepInSource(const QUrl& originalUrl, int originalLine) |
| 385 | { |
| 386 | if((Core::self()->setupFlags() & Core::NoUi)) return; |
| 387 | |
| 388 | clearExecutionPoint(); |
| 389 | qCDebug(SHELL) << "showing debugger step in source:" << originalUrl << originalLine; |
| 390 | |
| 391 | Q_ASSERT(qobject_cast<IDebugSession*>(sender())); |
| 392 | const auto [url, line] = static_cast<IDebugSession*>(sender())->convertToLocalUrl({originalUrl, originalLine}); |
| 393 | |
| 394 | const auto* const document = ICore::self()->documentController()->openDocument(url, KTextEditor::Cursor(line, 0), |
| 395 | IDocumentController::DoNotFocus); |
| 396 | if( !document ) |
| 397 | return; |
| 398 | |
| 399 | auto* const textDocument = document->textDocument(); |
| 400 | if (!textDocument) |
| 401 | return; |
| 402 | |
| 403 | m_lastExecMarkDocument = textDocument; |
| 404 | m_lastExecMarkLine = line; |
| 405 | textDocument->addMark(line, executionMark); |
| 406 | } |
| 407 | |
| 408 | |
| 409 | void DebugController::debuggerStateChanged(KDevelop::IDebugSession::DebuggerState state) |
nothing calls this directly
no test coverage detected