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

Method explainDebuggerStatus

plugins/debuggercommon/midebugsession.cpp:1274–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1272}
1273
1274void MIDebugSession::explainDebuggerStatus()
1275{
1276 MICommand* currentCmd_ = m_debugger->currentCommand();
1277 QString information =
1278 i18np("1 command in queue\n", "%1 commands in queue\n", m_commandQueue->count()) +
1279 i18ncp("Only the 0 and 1 cases need to be translated", "1 command being processed by gdb\n", "%1 commands being processed by gdb\n", (currentCmd_ ? 1 : 0)) +
1280 i18n("Debugger state: %1\n", m_debuggerState);
1281
1282 if (currentCmd_) {
1283 QString extra = i18n("Current command class: '%1'\n"
1284 "Current command text: '%2'\n"
1285 "Current command original text: '%3'\n",
1286 QString::fromUtf8(typeid(*currentCmd_).name()),
1287 currentCmd_->cmdToSend(),
1288 currentCmd_->initialString());
1289
1290 information += extra;
1291 }
1292
1293 auto* message = new Sublime::Message(information, Sublime::Message::Information);
1294 ICore::self()->uiController()->postMessage(message);
1295}
1296
1297// FIXME: connect to debugger's slot.
1298void MIDebugSession::defaultErrorHandler(const MI::ResultRecord& result)

Callers

nothing calls this directly

Calls 7

currentCommandMethod · 0.80
initialStringMethod · 0.80
uiControllerMethod · 0.80
countMethod · 0.45
nameMethod · 0.45
cmdToSendMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected