forked from qt-creator/qt-creator
QmlDebugger: hiding "this" from debugger when empty
Reviewed-by: Kai Koehne
This commit is contained in:
@@ -275,7 +275,8 @@ QList<JSAgentWatchData> JSDebuggerAgentPrivate::getLocals(QScriptContext *ctx)
|
||||
QScriptValue thisObject = ctx->thisObject();
|
||||
locals = expandObject(activationObject);
|
||||
if (thisObject.isObject()
|
||||
&& thisObject.objectId() != engine()->globalObject().objectId())
|
||||
&& thisObject.objectId() != engine()->globalObject().objectId()
|
||||
&& QScriptValueIterator(thisObject).hasNext())
|
||||
locals.prepend(fromScriptValue("this", thisObject));
|
||||
recordKnownObjects(locals);
|
||||
knownObjectIds << activationObject.objectId();
|
||||
|
Reference in New Issue
Block a user