John Carter wrote:

>> Say, we have a Ruby app going into an endless loop (or perhaps a 
>> thread deadlock) mode. Let us further assume that it happens in 
>> production and you don't know how to reproduce it anywhere else. How 
>> would you debug this?
>
> Thread.abort_on_exception = true

Neither endless loop, nor deadlock are exception conditions.

Alex