Excerpts from leon breedt's mail of 23 Jul 2005 (EDT):
> $stderr.puts inside hobix libs is your friend :) It will show up in
> Apache's error log.

The other thing I've found exceedingly useful in debugging comments is
this change:

diff -u -r1.4 webapp.rb
--- webapp.rb   14 Jul 2005 04:40:21 -0000      1.4
+++ webapp.rb   23 Jul 2005 13:39:48 -0000
@@ -622,9 +622,9 @@
       body.puts <<'End'
 <html><head><title>500 Internal Server Error</title></head>
 <body><h1>500 Internal Server Error</h1>
-<p>The dynamic page you requested is failed to generate.</p></body>
-</html>
+<p>The dynamic page you requested failed to generate.</p>
 End
+      body.puts "<p><code>#{backtrace}</code></p></body></html>"
     end

     def generate_debug_page(req, res, exc)

... which lets you see what the fuck is actually going wrong when things
fail.

> The fruits of my labour: http://sttm.xeraph.org/. I've shamelessly
> lifted _why's right-to-left username entry boxes ;/

Very nice.

-- 
William <[EMAIL PROTECTED]>
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to