Posted by
Bojan Nikolic on
Dec 03, 2008; 3:53pm
URL: http://quantlib.414.s1.nabble.com/C-exception-Stack-Trace-after-raising-quantlib-application-exceptions-tp6849p6852.html
Hi Eduardo,
Eduardo Montoya <
[hidden email]> writes:
> Hello, --enable-error-lines worked very well for me.
>
> I didn't know that in C++, checked exceptions clears the stack. It
> seems there is not a portable solution that allows to add some stack
> tracing capabilities to C++ programs.
Exceptions in C++ are not designed to supposed debugging of programs,
but rather recovery of programs from external factors and/or misuse
(and maybe bugs) in a production environment.
If you can run under the debugger, I would recommend you set a
break-point on the constructor of the base class of the exception
hierarchy and then you will have the back-trace available every time
an exception is created.
Hope that helps,
Bojan
--
Bojan Nikolic ||
http://www.bnikolic.co.uk------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users