if an exception is thrown inside a try/catch, can i put a breakpoint there to get into debu mode before the program exits?
+1
A:
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?
Ninefingers
2010-02-04 01:54:59
well I know I can place a break point in debug mode anywhere in the program but was wondering if these breakpoints where ignorede when an exception is thrown.
yan bellavance
2010-02-04 02:55:50
+2
A:
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
cake
2010-02-04 03:51:01