From a75c905687f481db7474f57f901f4c225a2b3886 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Tue, 23 Aug 2011 15:14:48 +0200 Subject: [PATCH] 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 Reviewed-by: Kai Koehne --- src/plugins/debugger/qml/qmlv8debuggerclient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp index 9505dbaf654..398c048295c 100644 --- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp +++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp @@ -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()));