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. How to create debugging helpers on Windows
Forum Updated to NodeBB v4.3 + New Features

How to create debugging helpers on Windows

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 1.2k Views 2 Watching
  • 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.
  • Z Offline
    Z Offline
    Zylann
    wrote on last edited by Zylann
    #1

    Hello,

    I'm using QtCreator to contribute to the Godot Engine project, however because this project defines its own container types (Vector, List, HashMap etc) it's impossible to see what's in them.
    I found it was possible to write cross-platform debugging helpers in Python as described here: http://doc.qt.io/qtcreator/creator-debugging-helpers.html
    And I wrote this first test code for the Vector<T> type:

    # Just for testing, kind of hello world
    def qdump__Vector(d, value):
    	d.putItemCount(42)
    

    However, nothing works for me so far.
    I tried setting up the "Extra Debugging Helpers" in GDB, nothing happened (I didn't see any option in CDB, though the doc says it's supported).
    I tried putting my helpers Python file in Qt\Tools\QtCreator\share\qtcreator\debugger, nothing happened.
    I even tried modifying an existing file; creatortypes.py to add my code, nothing happened either.
    I don't even know if an error occurred.

    I'm lost about how to set this up and develop my helpers. Anyone knows how I should proceed to get started?

    I'm using QtCreator 4.0.3 on Windows.

    jsulmJ 1 Reply Last reply
    0
    • Z Zylann

      Hello,

      I'm using QtCreator to contribute to the Godot Engine project, however because this project defines its own container types (Vector, List, HashMap etc) it's impossible to see what's in them.
      I found it was possible to write cross-platform debugging helpers in Python as described here: http://doc.qt.io/qtcreator/creator-debugging-helpers.html
      And I wrote this first test code for the Vector<T> type:

      # Just for testing, kind of hello world
      def qdump__Vector(d, value):
      	d.putItemCount(42)
      

      However, nothing works for me so far.
      I tried setting up the "Extra Debugging Helpers" in GDB, nothing happened (I didn't see any option in CDB, though the doc says it's supported).
      I tried putting my helpers Python file in Qt\Tools\QtCreator\share\qtcreator\debugger, nothing happened.
      I even tried modifying an existing file; creatortypes.py to add my code, nothing happened either.
      I don't even know if an error occurred.

      I'm lost about how to set this up and develop my helpers. Anyone knows how I should proceed to get started?

      I'm using QtCreator 4.0.3 on Windows.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Zylann I think you should ask on QtCreator developers mailing list as those developers there should know better how to write plug-ins.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Z Offline
        Z Offline
        Zylann
        wrote on last edited by
        #3

        What is the mainling list? I had a look at http://lists.qt-project.org/ but it looks like it's down.

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

          Hi,

          It's this one: http://lists.qt-project.org/pipermail/qt-creator/

          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

          • Login

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