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

Debugging with cdb may miss breakpoints at multiline statements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 2.3.0
    • Qt Creator 2.0.0
    • Debugger
    • None
    • Windows Vista x64
      MSVC 2008
      cl 15.00.30729.01 x86
      cdb 6.11.0001.404
    • b6d0f3f43231dff6ca58908f0d87dceac58428cc, 49814d9ea5dbcfc14cee09dc221a43c2ab9bbc65

      Let's have a useless but simple example program:

      #include <QtGui/QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc,    // set breakpoint here
                           argv);
          app.exec();
      }
      

      Placing a breakpoint in line 5 won't have any effect. To stop at the ctor of app, one must place the breakpoint in line 6.

      Instead, Creator should move the breakpoint to the next line as when debugging with gdb.

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

            kleint Friedemann Kleint
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes