diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-04-15 10:07:49 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-04-15 10:07:55 +0200 |
commit | 8a77eacf8d8c8f4877105e4758c7e587d01b4d83 (patch) | |
tree | f67167a3c1c5f63cde88d38a3606d90e567f6274 /src/plugins/debugger/qml/qmlengine.cpp | |
parent | 0338f6909c5ca5f265018304b15227530ba787e0 (diff) | |
parent | 7080645d20adc20a025b99ccd116575901165af5 (diff) | |
download | qt-creator-8a77eacf8d8c8f4877105e4758c7e587d01b4d83.tar.gz |
Merge remote-tracking branch 'origin/4.0'
Change-Id: Ied609608f6b12aa923c67777bc5a273c4d8fbcbb
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index bbbd1158ec..b9691939e5 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -109,7 +109,7 @@ enum StepAction struct QmlV8ObjectData { - int handle; + int handle = -1; QByteArray name; QByteArray type; QVariant value; @@ -771,6 +771,12 @@ void QmlEngine::insertBreakpoint(Breakpoint bp) d->breakpointsSync.insert(d->sequence, bp.id()); } +void QmlEngine::resetLocation() +{ + DebuggerEngine::resetLocation(); + d->currentlyLookingUp.clear(); +} + void QmlEngine::removeBreakpoint(Breakpoint bp) { const BreakpointParameters ¶ms = bp.parameters(); @@ -1103,8 +1109,6 @@ void QmlEngine::updateCurrentContext() else context = grandParentData->name; } - - debuggerConsole()->setContext(tr("Context:") + QLatin1Char(' ') + context); } void QmlEngine::executeDebuggerCommand(const QString &command, DebuggerLanguages languages) @@ -2203,12 +2207,15 @@ void QmlEnginePrivate::handleFrame(const QVariantMap &response) } } - // Expand locals and watchers that were previously expanded + // Expand locals that were previously expanded. local.this and watch.* + // trigger updates in there handleEvaluatedExpression handlers. LookupItems itemsToLookup; foreach (const QByteArray &iname, watchHandler->expandedINames()) { - const WatchItem *item = watchHandler->findItem(iname); - if (item && item->isLocal()) - itemsToLookup.insert(int(item->id), {item->iname, item->name, item->exp}); + if (iname != "local.this") { + const WatchItem *item = watchHandler->findItem(iname); + if (item && item->isLocal()) + itemsToLookup.insert(int(item->id), {item->iname, item->name, item->exp}); + } } lookup(itemsToLookup); } |