forked from qt-creator/qt-creator
Debugger: Remove messaging indirection in DebuggerRunControl
The base functionality is good enough. Change-Id: Ie39398828733245e0e74ca9a2941c069116014f0 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -315,7 +315,6 @@ public:
|
||||
bool m_isStateDebugging;
|
||||
|
||||
Utils::FileInProjectFinder m_fileFinder;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -495,10 +494,21 @@ void DebuggerEngine::showMessage(const QString &msg, int channel, int timeout) c
|
||||
consoleManager->printToConsolePane(QmlJS::ConsoleItem::UndefinedType, msg);
|
||||
|
||||
debuggerCore()->showMessage(msg, channel, timeout);
|
||||
if (d->m_runControl)
|
||||
d->m_runControl->showMessage(msg, channel);
|
||||
else
|
||||
if (d->m_runControl) {
|
||||
switch (channel) {
|
||||
case AppOutput:
|
||||
d->m_runControl->appendMessage(msg, Utils::StdOutFormatSameLine);
|
||||
break;
|
||||
case AppError:
|
||||
d->m_runControl->appendMessage(msg, Utils::StdErrFormatSameLine);
|
||||
break;
|
||||
case AppStuff:
|
||||
d->m_runControl->appendMessage(msg, Utils::DebugFormat);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
qWarning("Warning: %s (no active run control)", qPrintable(msg));
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerEngine::startDebugger(DebuggerRunControl *runControl)
|
||||
|
||||
Reference in New Issue
Block a user