Commit 567dd0a5 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlV8DebuggerClient: Watched Expressions



Expand watched expressions.

Change-Id: Ic4e5860931f3a7c6a33f37697585f43d7c2664a0
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 74b1dd07
......@@ -1653,6 +1653,7 @@ void QmlV8DebuggerClient::updateEvaluationResult(int sequence, bool success, con
if (success) {
data.type = body.type;
data.value = body.value.toString();
data.hasChildren = body.properties.toList().count();
} else {
//Do not set type since it is unknown
data.setError(body.value.toString());
......@@ -1735,7 +1736,6 @@ QVariant QmlV8DebuggerClient::valueFromRef(int handle, const QVariant &refsVal)
void QmlV8DebuggerClient::expandLocalsAndWatchers(const QVariant &bodyVal, const QVariant &refsVal)
{
//FIX THIS
// { "seq" : <number>,
// "type" : "response",
// "request_seq" : <number>,
......@@ -1778,10 +1778,7 @@ void QmlV8DebuggerClient::expandLocalsAndWatchers(const QVariant &bodyVal, const
data.exp = data.name.toLatin1();
}
if (prepend.startsWith("local."))
data.iname = prepend + '.' + data.name.toLatin1();
if (prepend.startsWith("watch."))
data.iname = prepend;
data.iname = prepend + '.' + data.name.toLatin1();
propertyData = valueFromRef(propertyData.value(_(REF)).toInt(),
refsVal).toMap();
data.id = propertyData.value(_(HANDLE)).toInt();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment