Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-03 19:58:29


Beman Dawes <bdawes_at_[hidden]> writes:

> At 12:48 AM 11/3/2002, Kevin S. Van Horn wrote:
>
> >Throwing an exception, on the other hand, causes the stack to be
> unwound, >thus throwing away all of that information. When debugging,
> throwing an
> >exception on a logical (programmer) error is the last thing in the
> world I
> >want to happen.
>
> Surely your debugger allows you to trap the exception at the point it
> is thrown,

If you're lucky enough to be running under the debugger, and to have
that breakpoint set, when the problem is detected, then you're home
free. That's a big IF.

> so that the stack (and everything else) at that point is
> available for inspection? Isn't that equivalent to getting a core
> dump, yet preserves the benefits of exceptions in non-debugging
questionable-------------^

> environments?

argumentative-ly y'rs,
dave

-- 
                    David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk