Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Breakpoint being moved by Qt
Qt 6.11 is out! See what's new in the release blog

Breakpoint being moved by Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 835 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mstothM Offline
    mstothM Offline
    mstoth
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved