Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Debugging with GDB, F10 steps into all functions
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Debugging with GDB, F10 steps into all functions

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 2.3k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #1

    Hello,

    I am debugging my Qt application (Qt 5.1.1, MinGW, Windows) using QtCreator and GDB. I can set breakpoints, and the debugger will correctly pause there. But it seems that pressing F10 will not execute the instruction on the current line, but rather either:

    • jump into it (effectively doing a F11)
    • jump back-and-forth a few lines before entering it

    This is very annoying. Is this the normal behaviour? Or what am I doing wrong?
    Except for that strange behaviour, the debugger produces correct values as it seems.

    Thanks

    1 Reply Last reply
    0
    • N Offline
      N Offline
      NicuPopescu
      wrote on last edited by
      #2

      I use gdb, even remote on linux embedded, and I could say F10/11 work just fine! :)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Are you using a optimized build?

        Those tend to rearrange instructions which in turn can make your debugger "jump around" instead of going from one line to the next.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          floatingWoods
          wrote on last edited by
          #4

          Thanks a lot Tobias, that was it!

          1 Reply Last reply
          0

          • Login

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