Qml Debugger: Raise sanity level to 1

This signals that we understand packages without extra "handles",
that we can deal with only one level of nesting on replies to lookups
and expression evaluations, and that we can understand script and
function names transmitted as plain strings rather than refs.

Change-Id: Iffdd50179b8f9374e2fc8ad3a03cf44fbc627bf1
Task-number: QTBUG-42435
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-03-09 19:12:58 +01:00
parent fed805d568
commit f087f36269

View File

@@ -2535,7 +2535,9 @@ void QmlEnginePrivate::stateChanged(State state)
if (state == QmlDebugClient::Enabled) {
/// Start session.
flushSendBuffer();
runDirectCommand(CONNECT);
QJsonObject parameters;
parameters.insert("sanity", 1);
runDirectCommand(CONNECT, QJsonDocument(parameters).toJson());
runCommand({VERSION}, CB(handleVersion));
}
}