From 7236f2124a2d9c97fee8ddca1dc8e3db2996c48a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 14 Mar 2017 18:00:15 +0100 Subject: [PATCH] Qml Debugger: Set detailed options rather than "sanity" The v4 debug service doesn't understand "sanity" after all, but wants to know the features we support. So state that we don't need redundant references and that we understand names when sent as strings. Change-Id: Ie973dd8002935a113a367d098337983d61663265 Reviewed-by: hjk --- src/plugins/debugger/qml/qmlengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 9272cb4860c..33759888faf 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -2536,7 +2536,8 @@ void QmlEnginePrivate::stateChanged(State state) /// Start session. flushSendBuffer(); QJsonObject parameters; - parameters.insert("sanity", 1); + parameters.insert("redundantRefs", false); + parameters.insert("namesAsObjects", false); runDirectCommand(CONNECT, QJsonDocument(parameters).toJson()); runCommand({VERSION}, CB(handleVersion)); }