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. Representation of std::shared_ptr in qtcreator debugger
QtWS25 Last Chance

Representation of std::shared_ptr in qtcreator debugger

Scheduled Pinned Locked Moved Qt Creator and other tools
5 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.
  • M Offline
    M Offline
    mschouwen
    wrote on last edited by
    #1

    Am I correct in that qtcreator is not able to represent std::shared_ptr in qtcreator 3+ ?

    I only get a not very helpfull remark about the usecount and such, but actual expansion of the pointer stored in the shared_ptr is not possible. It is supported for QSharedPointer it seems, but I prefer to use the std version.

    It was possible in qtcreator 2.8.1 which I have been using until now. I did not upgrade because of this problem ( I use many shared and unique pointers).

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

      Hi and welcome to devnet,

      It seems it should have been solved following this "bug report":https://bugreports.qt-project.org/browse/QTCREATORBUG-11305

      Depending on the version of Qt Creator you are using, you should add a comment to this bug

      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
      • M Offline
        M Offline
        mschouwen
        wrote on last edited by
        #3

        It isn't. Even the most trivial use of shared_ptr will not show correctly in qtcreator 3.2. I will see if i can add a comment to the bug (it is closed though)

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

          Closed doesn't mean it won't be reopened :)

          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
            andrep
            wrote on last edited by
            #5

            Please file a proper bug report and attach the debugger log (contents of right pane of Windows->Views->Debugger Log). Without access to any details my best guess is that you selected "Load system GDB pretty printers" in the Debugger options. Switch that off to use Creator's own pretty printing.

            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