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. Debug mode
QtWS25 Last Chance

Debug mode

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 4 Posters 6.2k 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.
  • A Offline
    A Offline
    andre
    wrote on last edited by
    #1

    Most of the different modes that can be triggered from the vertical bar at the top left result in big changes on the screen, making it easy to see what mode you're in. Not so with the Debug mode. The debug mode is just like the edit mode, with only a non-closable debug window added. When first starting to debug, that is very, very confusing.

    Wouldn't it be much more sensible if the debug window would be a closable window just like the other windows you can get in edit mode? I used to restart QtCreator to get rid of the window, simply because I did not notice that it was caused by being in a different mode. It seems inconsistent to me to have one window that can not be closed between all those others that can.

    To make it easy for everybody, perhaps the closing of the debug window would just return you to edit mode, and the switch back to debug mode would simply reopen the debug window.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ziller
      wrote on last edited by
      #2

      Hm, no idea if that wouldn't be even more confusing, but something like it could be worth a try. Perhaps instead of having a X button to the right of the debug tool bar, it would be better to have a slightly different icon - so it would be at the same place at the X of the other panes, but be a little bit different, and have a tool tip "Switch to Edit Mode" or something.
      Any ideas for an icon?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        Maybe use icon like Debug button at left has? Or maybe combination of Edit and Debug buttons?

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jorj
          wrote on last edited by
          #4

          You could have debug windows and tools only pop up when the app is started in debug mode, like in visual studio.

          Then hide them again when the application closes.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DenisKormalev
            wrote on last edited by
            #5

            Yeah, Jorj provided another good point of view. But because of having two different perspectives I think it should not only automatically open Debug view with debug session start (as it doing now), but also switch back to Edit view with end of debug session.

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

              I think that would be a good solution. AFAIK, there is no useful information to be had from the debug window anyway after the application has terminated, so there is little point in keeping it visible.

              Question is then: does it actually make sense to debug be a mode the way it is now? What would happen if you switch to debug mode? If you switch back to Edit mode at the end of a session, does it make sense to switch to debug mode manually at all? Or do you only switch back to edit mode if that is the mode you were in when you started the debug session to begin with?

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ziller
                wrote on last edited by
                #7

                There are valid use cases for switching between Edit Mode and Debug Mode while you are debugging. So yes, I think it makes sense to have them as different modes.

                Switching to Edit Mode if you are in Debug Mode at the moment the debugged application finishes, sounds like a possibly reasonable behavior.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DenisKormalev
                  wrote on last edited by
                  #8

                  Yeah, I'm voting for leaving two different modes, it makes development and debugging more flexible. I'm thinking that automatic switching should be done to mode that was last. For example, if you were in design view and started debugging than after end of debugging it should switch back to design view. But if you were in edit view, started debugging, manually switched to design view, after it switched back to debug view and finished session than it should switch to design view. Not sure that it is reasonable to switch to such views as project or documentation.

                  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