FXRuby error handling

When I run my .rbw script on Windows, the default is to use rubyw.exe, and
so unhandled exceptions are dumped to stdout which, of course, isn’t shown
by rubyw.exe. Is there a standard way of getting these dumped to file or
somesuch? I’m sure I could figure something out, but thought I’d ask so I
don’t go rediscovering a wheel.

I do know I can run the script from the console by prefacing it with
ruby.exe to get stdout again, but I want something for ‘production’ use.

Chris
http://clabs.org