How to catch ANY exception in gdb

In gdb, run

example.txt
catch throw

in order to break on any exception that is being thrown.

If you want to only break on a specific exception type instead, use

example.txt
catch throw [exception type]

 


Check out similar posts by category: C/C++