Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Debug Protocol
QtWS25 Last Chance

QML Debug Protocol

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 962 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nilres
    wrote on last edited by
    #1

    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

    DiracsbracketD 1 Reply Last reply
    0
    • N Nilres

      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

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #2

      @Nilres
      Does this help:?

      To enable remote C++ debugging with either GDB or CDB:
      http://doc.qt.io/qtcreator/creator-debugger-operating-modes.html

      As the doc states, you need the appropriate "helper processes" to be running on the target.
      When using GDB, this would e.g. be gdbserver, which implements the GDB serial protocol.
      ftp://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_125.html

      As 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.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nilres
        wrote on last edited by
        #3

        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

        aha_1980A 1 Reply Last reply
        0
        • N Nilres

          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

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Nilres
            wrote on last edited by
            #5

            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!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved