I\'m trying to do some semi test driven design, and occasionally when I implement a new feature, it will have an exception somewhere. All gtest tells me is what the excepti
In a more automatic way, you can add your own listener and then combine the output of failing test-cases by printing additionally the backtrace using How to make backtrace()/backtrace_symbols() print the function names?
Use catch throw
gdb command to set special breakpoint before your exception is thrown. When it is hit you can see backtrace as usual by command bt
. See https://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html.