I'm investigating a crash in my Ruby application. The stack trace in my log isn't enough information, and I cannot reproduce the error. When an unhandled exception occurs, I need to log the values of the locals in the frame where the exception occurred.
Is there any way to do that in Ruby?