QML Debug Protocol
-
Hi Guys,
in the documentation (http://doc.qt.io/qt-5/qtquick-debugging.html) it is stated that QML code can enable a debug interface via a TCP port. And that applications that implement the binary interface can be use this interface to do debugging tasks.
Where is this binary protocol documented? I searched around und can't find any information on it.
Thanks
Nils -
Hi Guys,
in the documentation (http://doc.qt.io/qt-5/qtquick-debugging.html) it is stated that QML code can enable a debug interface via a TCP port. And that applications that implement the binary interface can be use this interface to do debugging tasks.
Where is this binary protocol documented? I searched around und can't find any information on it.
Thanks
Nils@Nilres
Does this help:?To enable remote C++ debugging with either GDB or CDB:
http://doc.qt.io/qtcreator/creator-debugger-operating-modes.htmlAs the doc states, you need the appropriate "helper processes" to be running on the target.
When using GDB, this would e.g. begdbserver
, which implements the GDB serial protocol.
ftp://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_125.htmlAs for the QML debugging part, if your app is built with QML debugging enabled,
CONFIG+=qml_debug
then it will include the necessary debug code in your app which also enables remote JS debugging. It is enabled by launching the remote app with the-qmljsdebugger
command line argument:-qmljsdebugger=port:<port_from>[,port_to][,host:<ip address>][,block]
The implementation of it can be found in the following Qt directory:
qtdeclarative/src/qml/debugger
Cheers.
-
Yeah I'm more into the second part of your answer. I want to write my own custom tool that operates on this qml debugging environment. I looked into the qtdeclarative repository and see that there is the implementation of the protocol. There is also the qmldebug directory that has code in it that looks interesting.
Do I have to rework all the information from the code or is there a place where the API is documented?Cheers
-
Yeah I'm more into the second part of your answer. I want to write my own custom tool that operates on this qml debugging environment. I looked into the qtdeclarative repository and see that there is the implementation of the protocol. There is also the qmldebug directory that has code in it that looks interesting.
Do I have to rework all the information from the code or is there a place where the API is documented?Cheers
Hi @Nilres,
Such "advanced" questions are better asked at the Interest mailing list, which is monitored by the Qt developers.
This forum is more user orientated.
-
Thanks for the advice. I posted to the mailing list. In case someone is finding this thread here is the link to the mail list thread: http://lists.qt-project.org/pipermail/interest/2018-November/031615.html
Thanks Guys!