Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Is there an example of Debugging Helpers?
QtWS25 Last Chance

Is there an example of Debugging Helpers?

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 1.5k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    While debugging in QtCreator on OSX I would like to start taking advantage of debugging helpers. I looked at QtCreator 3.1 documentation and understand that I will need to implement helpers in python. However I find available documentation inadequate. Can someone provide pointers to:

    1. A sample implementing a helper. In particular I'd like to see a helper making calls to c++ methods of an object being dumped.
    2. Syntax of "Additional Startup Command" to be specified in debugger options.

    Do people have dissent success implementing/using helpers? In theory they should be of big help but how are they in practice?

    Thanks,
    ~ LR

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I'd recommend posting this question on the qt-creator mailing list. You'll find there Qt Creator developers/maintainers (this forum is more user oriented)

      In between, you could take a look at Qt Creator's sources for inspiration

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        apoenitz
        wrote on last edited by
        #3

        The existing dumper implementations are in the share/qtcreator/debugger/*types.py files. Easiest to get started is to cut&paste stuff from there, and put it e.g. directly into the 'misctypes.py'

        In general, it's not advisable to call functions in the dumpers (but possible, see e.g. the QDate dumper)

        And SGaist is right, the mailing list is a better place to ask such stuff.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Thanks for a suggestion but I can't file directory share/qtcreator and its subdirectories in my installation of 5.2.1 on Mac. Where should I look for it? Or do I need to install Qt with sources?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Looking into the package young one ;)

            Qt Creator.app/Contents/Resources/debugger/

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              Great! Learning something every day.

              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