#5677: Debugging with mod_python (apache) improperly documented
------------------------------------------------------------+---------------
Reporter: Manfred Wassmann <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component:
Documentation
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
------------------------------------------------------------+---------------
This is what the docs say:
{{{
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.
}}}
This is not completely true. Everything you write to sys.stderr ends up in
the apache error log, like this
{{{
import sys
sys.stderr.write('This goes to the apache error log')
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/5677>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---