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. Creator not displaying debug information
Forum Updated to NodeBB v4.3 + New Features

Creator not displaying debug information

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 314 Views 2 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    This is very similar to a problem I encountered a couple years ago. Unfortunately I didn't post the solution, nor do I remember it.

    Anyway, yesterday, when using the debugger in Creator, one of my classes (based on QWidget) doesn't show anything in the debugger. As far as I can tell, this is the only class/object that this is happening with.

    I don't know what else to say -- using Creator 4.12.0, MinGW debugger 7.3.0 and gdb 8.1 for MinGW. I've deleted all of my build artifacts, and double-checked that I'm using the debug configuration. Rather baffling to me. Any ideas? Thanks...
    widget.PNG

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

      Well, I found the problem (by process of elimination), but I don't understand it.

      
      class Widget : public QWidget
      {
          Q_OBJECT
      
      private:
          Ui::Widget *ui;
      //    QPlainTextEdit m_logTabs[5]; // this way screws up the debugger
          QVector<QPlainTextEdit> m_logTabs; // this way allows the debugger to work OK.
      public:
          explicit Widget(QWidget *parent = nullptr);
      };
      

      I realize that using C-style vectors isn't the greatest of form, but...am I really doing something wrong? The code works, so it seems as though the debugger should, too.

      1 Reply Last reply
      0
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        continuation: QTCREATORBUG-23998

        Qt has to stay free or it will die.

        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