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

Wrong global in debugger tooltip

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 15.0.0 (15.0 branch)
    • Debugger
    • None
    • Windows

    Description

       

      #include <iostream>
      
      namespace Test {
          static int d = 100;
          void test() {
              std::cout << d; // <- hover over "d" and check value displayed
          }
      }
      
      static int d = 50;
      int main() {
          std::cout << d;
          Test::test();
          return 0;
      }
      

      Attachments

        1. vs2022.png
          vs2022.png
          52 kB
        2. vscode.png
          vscode.png
          44 kB

        Issue Links

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

          Activity

            People

              ansemkiv Andrii Semkiv
              madwinter Marcus Tillmanns
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes