Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31564

Debugger - Variables not accessible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 14.0.1
    • Debugger
    • None
    • Desktop
    • Linux/Wayland
    • 3eb3f6009 (master)

      Some variables cannot be read in the debugger. In my case those variables have Qt types but for what I've read in forums, it applies also to other types, like those in the STL. For such variables Qt Creator displays the value <not accessible>. This happens in the locals section and in the watch section of the IDE.

      Apparently, this problem has occurred in different versions of Qt Creator (3.0, 3.1.2, 4.5.1, 6.2.0, 14.0.1) and doesn't have a solution in forums:

       

      This doesn't occur in other IDEs like CLion or VS Code. Please refer to the images. Just as a reference, I used the following code for debugging

       

      void ThumbnailView::keyPressEvent(QKeyEvent *event)
      {
          if (event->key() == Qt::Key_Return) {
              ...
      
          } else if (event->key() == Qt::Key_Right && event->modifiers() == Qt::NoModifier) {
                 ...
      
              }
              return;
          }
      
              QListView::keyPressEvent(event);
      }

       

      Qt Creator

       

      CLion

       

       

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ansemkiv Andrii Semkiv
            pehg Pedro Hernandez
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes