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. Show static and global variables in debug mode

Show static and global variables in debug mode

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 17.4k 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.
  • G Offline
    G Offline
    goli
    wrote on last edited by
    #1

    I have qt creator 2.4.1 based on Qt 4.7.4
    How can I show static and global variables in debug mode?

    1 Reply Last reply
    0
    • I Offline
      I Offline
      ilean
      wrote on last edited by
      #2

      If I'm not wrong, you're talking about how to write variable name in debug window because static and global are not automatically pushed there... two ways:
      1: drag and drop var name from text code to debug window
      2: double click debug window and a new row will appear to write var name.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goli
        wrote on last edited by
        #3

        tnx,
        another way:
        3. Debug--> Add to watch window

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nick keighley
          wrote on last edited by
          #4

          probably good answers but...

          • what's a "debug window"? I can't find anything named that in Qt Creator and google doesn't seem to know either

          • " Debug—> Add to watch window"? what? is Debug a menu? a button? a command? possibly a window...

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

            ah.

            you can drag and drop expressions into the "Locals and Expressions" window

            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