forked from qt-creator/qt-creator
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 <hjk@qt.io>
This commit is contained in:
@@ -2536,7 +2536,8 @@ void QmlEnginePrivate::stateChanged(State state)
|
|||||||
/// Start session.
|
/// Start session.
|
||||||
flushSendBuffer();
|
flushSendBuffer();
|
||||||
QJsonObject parameters;
|
QJsonObject parameters;
|
||||||
parameters.insert("sanity", 1);
|
parameters.insert("redundantRefs", false);
|
||||||
|
parameters.insert("namesAsObjects", false);
|
||||||
runDirectCommand(CONNECT, QJsonDocument(parameters).toJson());
|
runDirectCommand(CONNECT, QJsonDocument(parameters).toJson());
|
||||||
runCommand({VERSION}, CB(handleVersion));
|
runCommand({VERSION}, CB(handleVersion));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user