Adrian Panasiuk
Adrian Panasiuk

Reputation: 7343

interrupt program in debugger when c++ exception is thrown

How can I make gdb interrupt (like in breakpoint) the program at the point where an exception is thrown, and interrupt again on rethrows and beginnings of the relevant catch blocks?

Upvotes: 2

Views: 581

Answers (2)

Nemanja Trifunovic
Nemanja Trifunovic

Reputation: 24561

Set a catchpoint.

Upvotes: 3

Jared Oberhaus
Jared Oberhaus

Reputation: 14658

Try catch throw and catch catch.

Upvotes: 7

Related Questions