|
Boost Users : |
Subject: Re: [Boost-users] Unable to catch exception using boost::asio
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-07-14 22:24:08
On Tue, Jul 14, 2009 at 9:22 PM, Zachary Turner<divisortheory_at_[hidden]> wrote:
> First put a breakpoint inside the try block. When it gets hit use
> whatever mechanism your debugger provides to see what thread you're
> in. In windows using MSVC, for example, you'd just add a watch for a
> variable called $TID which a special pseudo-variable that shows you
> the thread id. For other debuggers you'd have to consult the manual.
> Next register an unhandled exception handler.
Err, I suppose it goes without saying that I had mental dyslexia
there, and you should obviously register the exception handler BEFORE
you run the program under the debugger since it's kind of hard to
test code that hasn't been compiled yet. >.>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net