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

Debugger shows wrong local variable in for loop (MSVC compiler)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 3.3.0-beta1
    • Qt Creator 3.2.1
    • Debugger
    • None
    • - Win7x64
      - MSVC Compiler
      - Debugging Tools For Windows as part of Windows 8.1 SDK

      When you have two for loops both with the same variable name (e. g. "i") and then debug the application with a breakpoint in the second for loop, you will notice that the shown variable (while hovering over the variable name) is from the other loop and therefore not the correct one.

      See the picture and the sample project for further information.

      Debugging the same application with minGW or inside Visual Studio itself works correctly.

        For Gerrit Dashboard: QTCREATORBUG-13132
        # Subject Branch Project Status CR V

            davschul David Schulz
            milania Mila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes