You can attach GDB to a Ruby process and get all sorts of information. Call with gdb /path/to/ruby <PID>, then running call rb_backtrace() from within gdb will get you a stack trace and you can raise exceptions with call rb_raise(rb_eException, “Testing…”). Neat trick, see here for the original source. I should add that in Ruby…