15 Jul
2009
15 Jul
'09
2:24 a.m.
On Tue, Jul 14, 2009 at 9:22 PM, Zachary Turner
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. >.>