rbtrace: like strace, but for ruby code
github.com
github.com
I am aware of this: http://docs.python.org/devguide/gdb.html only.
python offers a very similar event hook api: http://www.doughellmann.com/PyMOTW/sys/tracing.html
I used Python for 6 years and had no idea about sys.settrace()
Unfortunately the firehose doesn't work too well on OSX, because the unix message queue API I'm using (msgget(2)) is capped in the kernel to 2048 bytes and 40 messages per queue.