Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make Qt's debugger show memory address of locals and Expressions
Forum Updated to NodeBB v4.3 + New Features

How to make Qt's debugger show memory address of locals and Expressions

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 5.3k Views 1 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.
  • K Offline
    K Offline
    kloveridge
    wrote on last edited by
    #1

    This is such a fundamental part of debuggin. But I cannot for the life of me figure out how to make Qt's debugger show the the address of the Locals and Expressions!.

    I see the name of the variable, the value and type. But where is the dang address!?

    When I right click it gives me options to see variables as a raw pointer. But When I use it, nothing happens.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      What OS do you use?
      I just checked QtCreator debugger on Linux and it shows the pointers (@0x87654321)
      If I change view to "Raw pointer" then it adds a parent to the variable with the same name and address (0x87654321)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kloveridge
        wrote on last edited by
        #3

        I am using Mac.

        Here's a screen shot of the debugger. I'm wondering if it only shows the address on heap allocated objects. The ones that are missing are locally scoped.

        !http://i.imgur.com/e5tTuQ6.png()!

        1 Reply Last reply
        0
        • C Offline
          C Offline
          colinw
          wrote on last edited by colinw
          #4

          right click -> Use Tooltips in Locals View When Debugging

          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