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. Debugging in Creator: possible to lock a window?
Forum Updated to NodeBB v4.3 + New Features

Debugging in Creator: possible to lock a window?

Scheduled Pinned Locked Moved Qt Creator and other tools
19 Posts 4 Posters 7.8k 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.
  • M Offline
    M Offline
    mohsen
    wrote on last edited by
    #2

    i never use Qt Creator debug mode cuz it's not user friendly. i prefer using qDebug() instead.
    you may give a suggestion at http://bugreports.qt.nokia.com/

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

      Why do you leave debugger mode then? It seems logical to me that windows that are associated with a mode, are not shown when not in that mode. What else would the mode mean?

      @mohsen:
      qDebug is obviously not a replacement for using a debugger, but I guess you'll find that out sooner or later.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mohsen
        wrote on last edited by
        #4

        Yes Andre, It's not a replacement for debugger but Qt Creator Debug environment is not much familiar to me. I use it only when i have mathematics problems.

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #5

          Hi, Andre -

          Terrible wording on my part. The window goes away when leaving the debugging mode, but doesn't return when you re-enter debugging mode.

          I've noticed that this isn't 100% true, and I'm trying to nail down exactly what the criteria, but there are lots of variables. I think as long as a debugging session is active, when you leave and return, you'll get the window back. I think it should return no matter what; as though the window is a preference or a configuration option for the mode.

          FWIW, I'm very happy with the debugger interface in Creator. If I could just figure out a way to view the contents of various objects (like vectors or stacks), I'd be even happier, but...it works wonderfully for me.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #6

            Ah, ok. Yes, I agree the window should return where you last left it if you return to debugging mode. I suggest you file a bugreport at the URL mohson mentioned earlier if this is not the case.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Duck
              wrote on last edited by
              #7

              [quote author="mzimmers" date="1320677235"]FWIW, I'm very happy with the debugger interface in Creator. If I could just figure out a way to view the contents of various objects (like vectors or stacks), I'd be even happier, but...it works wonderfully for me.[/quote]

              vectors and stacks (both Qt and std) should be displayed nicely out-of-the-box (unless you actively disabled "Use Debugging Helpers" or such). If it doesn't for you, file a bug and attach the debugger log (content of right pane of Windows->Views->Debugger Log)

              1 Reply Last reply
              0
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #8

                Here's what it looks like to me:

                !http://scopedin.com/images/qtdebug.jpg(debug window)!

                I can see the first and last element, but know of no way to see the ones in between.

                And, I do have debugging helpers enabled.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Duck
                  wrote on last edited by
                  #9

                  Sorry, that's a snapshot of the "Locals and Expressions" window, not the contents of the right pane of "Windows->Views->Debugger Log". That would be quite a bit of text, so putting it on pastebin.com and just posting a link here might be an option. The log contains your debugger configuration, so it's much easier to spot the reason for your problem. From the screenshot I only see that the "helpers" do not work at all for you, but not why.

                  1 Reply Last reply
                  0
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #10

                    Is there a way to clear the debugger log?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Duck
                      wrote on last edited by
                      #11

                      There's something in the context menu of that view.

                      1 Reply Last reply
                      0
                      • mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by
                        #12

                        Got it...thanks.

                        The debugger log, and the commands window are in files here:

                        "debugger log":http://scopedin.com/text/

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          Duck
                          wrote on last edited by
                          #13

                          Mac... we could have figured that out quicker. Go to Tools->Options->Qt Version (or something similar), select the Qt version you are using, and "Rebuild" the debugging helpers.

                          1 Reply Last reply
                          0
                          • mzimmersM Offline
                            mzimmersM Offline
                            mzimmers
                            wrote on last edited by
                            #14

                            I can't find that command, and I have to leave for a meeting now. I'll look around for it later, and report back. Thanks.

                            EDIT (for posterity): this is in preferences. Qt Creator->Preferences->Qt4, under the "Helpers" area (you have to click on "Details" to see what you're looking for. Then, build them...and sit for awhile, because it takes a few minutes, and you don't get any feedback while that's happening.

                            Anyway, I built the helpers...so, where should I look for the improved display of vectors and stacks and stuff? The "Locals and Expressions" window looks the same.

                            1 Reply Last reply
                            0
                            • mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #15

                              Any ideas, guys? Helpers are built and enabled, but I'm not seeing anything different. It would be very nice to have an improved view into some of the STL data structures.

                              Thanks.

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                Duck
                                wrote on last edited by
                                #16

                                Do you see any difference in the debugger log? The lines "dState changed from InferiorRunOk(11) to InferiorStopOk(14). dThe debugging helper library was not found at ." should look different now.

                                1 Reply Last reply
                                0
                                • mzimmersM Offline
                                  mzimmersM Offline
                                  mzimmers
                                  wrote on last edited by
                                  #17

                                  Upon closer look, it appears that this is partly solved:

                                  I searched the debugger log for "helper library" and found nothing, so I assume that error is gone.

                                  Some vectors are displaying better now. Here's a screenshot of a locals windows. The vector nyqInp (passed to the active routine as a parameter) is now displayed "nicely," but the member vectors coeffBuffer and inpBuffer aren't.

                                  !http://scopedin.com/images/qtdebug2.jpg(qt locals window)!

                                  At least this is progress, but I'd really like to be able to see into member vectors, too.

                                  1 Reply Last reply
                                  0
                                  • mzimmersM Offline
                                    mzimmersM Offline
                                    mzimmers
                                    wrote on last edited by
                                    #18

                                    Any ideas from anyone on this? Thanks.

                                    1 Reply Last reply
                                    0
                                    • mzimmersM Offline
                                      mzimmersM Offline
                                      mzimmers
                                      wrote on last edited by
                                      #19

                                      Should I start a new thread with a different subject on this? It appears that the helper doesn't "help" on stuff pointed to by the "this" pointer.

                                      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