Debugger: Keep 'this' expanded while stepping

Change-Id: Ib72a10e5dbf54c7586254ed513718631e5289b37
Task-number: QTCREATORBUG-15747
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-04-14 08:52:49 +02:00
parent fafc12be47
commit a28f73971a

View File

@@ -2204,13 +2204,16 @@ 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; LookupItems itemsToLookup;
foreach (const QByteArray &iname, watchHandler->expandedINames()) { foreach (const QByteArray &iname, watchHandler->expandedINames()) {
if (iname != "local.this") {
const WatchItem *item = watchHandler->findItem(iname); const WatchItem *item = watchHandler->findItem(iname);
if (item && item->isLocal()) if (item && item->isLocal())
itemsToLookup.insert(int(item->id), {item->iname, item->name, item->exp}); itemsToLookup.insert(int(item->id), {item->iname, item->name, item->exp});
} }
}
lookup(itemsToLookup); lookup(itemsToLookup);
} }