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

Pointer and reference values not displayed in lldb-based debugger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.6.0-beta1
    • Qt Creator 4.4.0-rc1
    • Debugger
    • macOS 10.12.5
      XCode 8.3.1

    Description

      Compile sample program on macOS, and set a breakpoint where the comment says so.
      Start debugging session, observe that reference and pointer types do not show, instead "<not accessible>" is displayed.

      #include <string>
      
      int main(int argc, char* argv[]) {
          (void)argc;
          (void)argv;
      
          std::string stdString = "i am std::string";
          (void)stdString;
      
          std::string &stdStringReference = stdString;
          (void)stdStringReference;
      
          std::string *stdStringPointer = &stdString;
      
          std::string *&stdStringPointerReference = stdStringPointer;
          (void)stdStringPointerReference;
      
          int c = 4;
          // Set breakpoint here.
          ++c;
      
          return 0;
      }
      

      Attachments

        Activity

          People

            hjk hjk
            alexandru.croitor Alexandru Croitor
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: