In my development stack, which ran commands to enter Apache + mod_wsgi into the console, their output was redirected to the site error logs. To resolve this, you set stdoutToServer=True and sterrToServer=True to route the capture of all output to the PyDev remote debugger:
from pydevsrc import pydevd;pydevd.settrace('192.168.2.8', stdoutToServer=True, stderrToServer=True)
Daniel Sokolowski
source share