views:

209

answers:

1

QT creator can build and run my projects perfectly, but it will skip straight over any breakpoints I set. I can't find any options to fix this, and I'd appreciate some help.

EDIT: The SDK is built in debug mode, and the project build configuration is set to debug.

+1  A: 

Qt Creator has two modes of running your app: "run" and "debug". I think you may be confused as to what they mean:

  • Run: launch the program, exactly the same as double-clicking on the executable.
  • Debug: launch the debugger, attach it to the executable, and run the executable through the debugger. This records all steps (function calls etc.) your program has, including breakpoints.

In short: when you need to figure out an internal value during program execution and/or have set breakpoints, use Debug. For anything else, just run it, which is a lot faster.

rubenvb