Reputation: 4830
if an exception is thrown inside a try/catch, can i put a breakpoint there to get into debu mode before the program exits?
Upvotes: 2
Views: 1150
Reputation: 1386
Tested here with a simple code, were I called a function that always throw. The breakpoints inside de catch block not ignored, and the debug mode started normally.
Anyway, qtCreator uses GDB for debugging (At least on my machine). You can find out more about how GDB handle exceptions debugging here http://www.caf.dk/cafonly/gnu/gdb/gdb_31.html
Upvotes: 2
Reputation:
I don't see why not, this can certainly be done with the C/C++ IDE in Eclipse just by clicking in the margin where you want to break and running in "debug mode". In Eclipse, there is a run and a run in debug mode separation - I assume that's the case also in Qt Creator. Try it?
Upvotes: 1