forked from qt-creator/qt-creator
QML Debugger: Handle QtInfoMsg messages in console
Before those were ignored. Also add a soft assert that will trigger if we forget to add some other category here. Change-Id: Iff3b33ab6c8defe935b681dd80bf185cd95e54f7 Task-number: QTCREATORBUG-20117 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -210,6 +210,7 @@ void appendDebugOutput(QtMsgType type, const QString &message, const QDebugConte
|
|||||||
{
|
{
|
||||||
ConsoleItem::ItemType itemType;
|
ConsoleItem::ItemType itemType;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case QtInfoMsg:
|
||||||
case QtDebugMsg:
|
case QtDebugMsg:
|
||||||
itemType = ConsoleItem::DebugType;
|
itemType = ConsoleItem::DebugType;
|
||||||
break;
|
break;
|
||||||
@@ -220,11 +221,10 @@ void appendDebugOutput(QtMsgType type, const QString &message, const QDebugConte
|
|||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
itemType = ConsoleItem::ErrorType;
|
itemType = ConsoleItem::ErrorType;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
//This case is not possible
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTC_ASSERT(itemType != ConsoleItem::DefaultType, return);
|
||||||
|
|
||||||
debuggerConsole()->printItem(new ConsoleItem(itemType, message, info.file, info.line));
|
debuggerConsole()->printItem(new ConsoleItem(itemType, message, info.file, info.line));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user