views:

403

answers:

1

This might be a GDB question.. but I'd like to run my app in the debugger and have the debugger break when an exception is thrown, so I can see where the code is and what its doing at that time.

I do this often in Visual Studio using the Debug -> Exceptions dialog, checking the 'Thrown' column beside the type of exceptions I'd like to stop on.

  • Alex
+1  A: 

The best I found is news.eclipse.tools.cdt: Re: Catching C++ exceptions at point of throw:

Meanwhile, you can go at the GDB console in eclipse and type "catch throw", like you are did with gdb, 'til we find away to integrate this feature in CDT.

eed3si9n
I went through the tutorial, I don't see anything about breaking on exceptions, did I miss it?
Alex Black
Corrected the answer.
eed3si9n
I'll check that out, thx.
Alex Black