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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: