Cgi traceback

Is there a way to configure the ruby cgi module to give
trace back information incase of errors in the script?

Similar to pythons cgitb (cgitb.enable())…

Cheers
Jesper

You can just trap the exception and display it.

The attached code uses the ruby-fcgi library (which I recommend anyway -
your application then runs either as cgi or fcgi with no modification), but
you can just extract the begin-rescue-end bit for your use.

Regards,

Brian.

base.rb (1.58 KB)

app1.rb (1.2 KB)

···

On Wed, Jul 30, 2003 at 11:05:52AM +0900, Jesper Olsen wrote:

Is there a way to configure the ruby cgi module to give
trace back information incase of errors in the script?

Similar to pythons cgitb (cgitb.enable())…