Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Breakpoint being moved by Qt



  • Here's another strange behavior I'm experiencing using Qt Creator 4.0.3
    Based on Qt 5.7.0 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)

    I have saved, cleaned, and rebuilt my code many times and the phenomenon continues to occur. I placed a break point at the emit statement on line 180 as shown below.
    0_1501599508305_Selection_173.png
    As soon as I continue executing my code, the breakpoint moves as shown below.
    0_1501599697281_Selection_174.png

    At first I thought it must be that my source is different from the compiled but as I mentioned, I have repeatedly saved, cleaned, and rebuilt my code so it can't be that (can it?)

    Anyone else see this behavior?



  • That normally happens when the compiler optimises out the code. if you put something like qDebug("test"); in the line above and try to break there does it work?


Log in to reply