[Interest] bad_alloc raised : Amout of RAM available ?

K. Frank kfrank29.c at gmail.com
Mon Jul 8 15:49:18 CEST 2013


Hi Quentin!

On Mon, Jul 8, 2013 at 9:05 AM,  <> wrote:
> Le Mon, 8 Jul 2013 16:40:59 +0400, ???? ?????????? <>
> écrivait:
>
>>You can tell you debugger to break when an exception is thrown. So, the easiest way is to debug you app.
>
> I know I have to debug my apps. That's what I am trying to do here.
>
> What I do not know is how to set up a breakpoint on a std exception I
> did not raise, not knowing where it was raised.
>
> I am using gdb under QtCreator 2.6.1.

With gdb you can set what gdb calls a catchpoint.

   catch throw

sets a catchpoint that catches the occurrence of a c++ exception
being thrown.

I've used it a little bit with mingw-w64's gdb under windows, and it
seems to work as expected.

> ...
> Quentin


Happy Debugging!


K. Frank



More information about the Interest mailing list