Debugging Plone
To do step-through debugging or stopping Plone web server in a breakpoint, you can launch Plone in IDE debug mode. Instead of normal Run icon (play arrow), choose Debug icon (a bug). Debug launches are considerably slower, so do this only when you really need it.
From Eclipse IDE you can
* Set breakpoints
* Step-through running Plone code
* Inspect variables
* Use interactive debug console (PyDev commercial extension only)
* Remote debugging - attach to running Plone process on other machine (PyDev commercial extension only)
Incompatibility note
--------------------
The current PyDev version 1.3.18 has some unsolved issues debugging Plone on some systems. If you get this error message::
OSError: [Errno 11] Resource temporarily unavailable
please `see this bug report <https://sourceforge.net/tracker/?func=detail&aid=2012138&group_id=85796&atid=577329>`_.
Psyco JIT compiler speed up
---------------------------
In Linux, you can install Psyco (x86 JIT compiler) to speed up the debug launches. Your Linux distribution package manager probably doesn't support Psyco for Python 2.4 so you need to install it by hand (Debian based instructions)::
wget http://downloads.sourceforge.net/psyco/psyco-1.6-src.tar.gz?modtime=1197822163&big_mirror=0
tar -xzf psyco-1.6-src.tar.gz
cd psyco-1.6/
python2.4 setup.py build
sudo python2.4 setup.py install
