Is it possible to configure gdb for any throw?

I am debugging code with exception handling and exception handling. I would like gdb to crash immediately when an exception is thrown, so I can check the status of the program and the call stack. How can I make gdb break when throwing any exception?

+6
source share
1 answer

You can do this with the catch throw command. See here .

+6
source

Source: https://habr.com/ru/post/908415/


All Articles