Debugger: Suppress v8 specific locals

This Hack ensures that v8 specific locals are not visible in the debugger locals and watchers window

Change-Id: I3958a4dc0c9ded3de2686546ad1d51f080952b6a
Reviewed-on: http://codereview.qt.nokia.com/3408
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Aurindam Jana
2011-08-23 15:14:48 +02:00
parent 6b8b2e63ea
commit a75c905687

View File

@@ -509,6 +509,10 @@ void QmlV8DebuggerClient::setLocals(int frameIndex)
WatchData data;
data.exp = local.findChild("name").toVariant().toByteArray();
//Check for v8 specific local
if (data.exp.startsWith("."))
continue;
data.name = data.exp;
data.iname = "local." + data.exp;
JsonValue val = refs.childAt(indexInRef(refs,local.findChild("value").findChild("ref").toVariant().toInt()));