How can I catch my exception and debug it too? teehee (sorry for bad play on cake)<br><br><div class="gmail_quote">On Mon, Jun 8, 2009 at 12:30 AM, lowly coder <span dir="ltr"><<a href="mailto:lowlycoder@huoyanjinjing.com">lowlycoder@huoyanjinjing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here's my problem:<br><br>  I am running a multi threaded application on gsi.<br><br>  Thread X executes thunk THUNK.<br>
<br>  if THUNK throws an exception, I want to be able to use the repl to jump into thread X and see what is wrong (and have the whole interactive repl debugger at my finger tips).<br>
<br>  However, I also want to profile THUNK. Thus, before THUNK starts, I want to run (profile-start!) and when THUNK finishes (or if an exception is thrown), I want it to call (profile-stop!)<br><br>  Here now is the problem ... if I don't catch the exception (and allow myself to debug it at the GSI), my profiler will colelct data of me sitting at the REPl debugging.<br>

<br>  On the toher hand, if I catch the exception to call (profile-stop!), I no longer know how I can debug the exception at the REPL. How do I get around this?<br><br>Thanks!<br>
</blockquote></div><br>