From: "Florian Groß" Date: 2006-01-23T08:06:59+09:00 Subject: Re: Debugging endless loops Alexey Verkhovsky wrote: > Hi, Florian, Moin Alexey. > Remote 'breakpointer' might be a workable idea. But when I am in IRB, > how do I get stack traces for all currently running threads? Ouch, I'm afraid this is yet another case where Ruby's reflection isn't as useful as it could be... You can get the backtrace via Thread#raise (set thread.abort_on_exception to true first and catch the exception which will have the backtrace) but it has the rather unfortunate side effect of killing Ruby in the process. I really think that Thread#caller would be a good idea... > Rest assured, I do know where to find 'breakpoint' library - I keep > telling about it to everyone pissed off or puzzled by the absence of a > decent debugger in the Ruby world. And I hope I'll be able to finally add a sensible GUI soon enough. Thanks for the kind words. -- http://flgr.0x42.net/