Page 1 of 1

debugging + assert

Posted: Sat Oct 06, 2012 4:40 pm
by HJarausch
Hi,
I'm using 'assert' from the standard C++ headers.
When debugging a failing assert
- (under Linux) acts as a breakpoint and one can use gdb commands like 'where'
- (under Windows/MinGW)
- on a command line: I do see the assert message but then I get
"The application has requested the Runtime to terminate it in unusual way.
And using gdb's 'where' command just tells me "No Stack"

- when run within CodeLite an output window is opened and closed immediately,
so I cannot even see the assert error message.

Is there any way to have CodeLite under Windows behave similarly as under Linux?

Many thanks for a hint.
(This is quite import to my C++ students since the matrix/vector software EIGEN uses assert to track invalid indices in vectors/matrices.)

Helmut.

Re: debugging + assert

Posted: Sat Oct 06, 2012 6:28 pm
by eranif
Have you tried enabling:

Settings -> Debugger Settings -> GNU Gdb Debugger -> Misc -> Break at assertion failure?

Eran

Re: debugging + assert

Posted: Sun Oct 07, 2012 2:09 pm
by HJarausch
Yes, thanks, that works fine.
... CodeLite is too mighty for me

Helmut.