summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-10-26 10:43:43 +0200
committerAurindam Jana <aurindam.jana@nokia.com>2011-10-27 12:07:17 +0200
commita5543b892025d34eb326028d6795db4ad8421d0a (patch)
tree41c30d91df47ff28dbf4f41f088471a4513d33a7 /src/plugins/debugger/qml/qmlv8debuggerclient.cpp
parent0112be96301401039a74ef32d7b623f47654b2d8 (diff)
downloadqt-creator-a5543b892025d34eb326028d6795db4ad8421d0a.tar.gz
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>
Diffstat (limited to 'src/plugins/debugger/qml/qmlv8debuggerclient.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlv8debuggerclient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
index 1e0d55e5c5..b588f534d5 100644
--- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
+++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
@@ -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);
}
}
}