forked from qt-creator/qt-creator
QmlV8DebuggerClient: Show exception info in console.
Exception Information is printed in QML Script Console if breakpoint of type "Break when JavaScript exception is thrown" is enabled. Change-Id: I9bc5839ba7b7019682e03cc5d71ae6e44e23f63a Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -1567,6 +1567,10 @@ void QmlV8DebuggerClient::highlightExceptionCode(int lineNumber,
|
||||
|
||||
selections.append(sel);
|
||||
ed->setExtraSelections(TextEditor::BaseTextEditorWidget::DebuggerExceptionSelection, selections);
|
||||
|
||||
QString message = QString(_("%1: %2: %3")).arg(filePath).arg(lineNumber)
|
||||
.arg(errorMessage);
|
||||
d->engine->showMessage(message, ScriptConsoleOutput);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user