From f087f3626913dcd63b9c89e27976a94e7d45240f Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 9 Mar 2017 19:12:58 +0100 Subject: [PATCH] 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 --- src/plugins/debugger/qml/qmlengine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 18805d8adb8..9272cb4860c 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -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)); } }