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

Debugger misses breakpoint at variable declaration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.4.0-beta1
    • Debugger
    • Windows 7 64 bit
      MSVC 2010
      cdb 6.12

    Description

      1. Create a new project using "File" -> "New File or Project..." -> "Non-Qt Project" -> "Plain C++ Project".
      2. At the begin of the main function, add a variable declaration:
        #include <iostream>
        
        using namespace std;
        
        int main()
        {
            int i; // <- added line
            cout << "Hello World!" << endl;
            return 0;
        }
        
      3. Add a breakpoint at the variable declaration.
      4. Run this in the debugger.
        The debugger won't stop at the breakpoint.
      5. Comment out the line with the variable declaration.
      6. Run this in the debugger.
        Now the breakpoint will be moved to the next line and the debugger will stop there.

      When execution passes a breakpoint, the program should stop there or at least nearby.

      Attachments

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

        Activity

          People

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes