summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2015-01-30 15:03:45 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-02-02 12:10:18 +0000
commit09ad56a67b8c0ff4fbf78c802450c51646b11021 (patch)
treeac8554f1957ccdc3abf484b547d090487d67544a
parent40ba5f947bd489002430d7ae2bef62cd403cdeac (diff)
downloadqt-creator-09ad56a67b8c0ff4fbf78c802450c51646b11021.tar.gz
V8Debugger: Don't send watcher requests if qml engine has not stopped
This fixes a regression introduced in a8ebf535b829dac. We shouldn't send watcher evaluation commands while the QML engine hasn't actually stopped, because this might lead to an assert on the server side. Task-number: QTCREATORBUG-13916 Change-Id: I300e2f73c0a1a03e0e6187a5357abeba408f72a0 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--src/plugins/debugger/qml/qmlv8debuggerclient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
index f4c0816450..c28166ef26 100644
--- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
+++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
@@ -954,6 +954,9 @@ void QmlV8DebuggerClient::executeDebuggerCommand(const QString &command)
void QmlV8DebuggerClient::synchronizeWatchers(const QStringList &watchers)
{
SDEBUG(watchers);
+ if (d->engine->state() != InferiorStopOk)
+ return;
+
foreach (const QString &exp, watchers) {
StackHandler *stackHandler = d->engine->stackHandler();
if (stackHandler->isContentsValid() && stackHandler->currentFrame().isUsable()) {