Browse files

Improved docs/modpython.txt to add note about debugging under mod_pyt…

…hon with print statements

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 515ae9c commit a2527ebe7798345e450432776b2b912d02320f2a @adrianholovaty adrianholovaty committed Nov 27, 2005
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/modpython.txt
@@ -107,6 +107,15 @@ having to restart the server each time you make code changes. Just set
everything for each request. But don't do that on a production server, or we'll
revoke your Django privileges.
+If you're the type of programmer who debugs using scattered ``print``
+statements, note that ``print`` statements have no effect in mod_python; they
+don't appear in the Apache log, as one might expect. If you have the need to
+print debugging information in a mod_python setup, either do this::
+ assert False, the_value_i_want_to_see
+Or add the debugging information to the template of your page.
.. _mod_python documentation:
Serving media files

0 comments on commit a2527eb

Please sign in to comment.