Comment 0 for bug 541985

Revision history for this message
Numérigraphe (numerigraphe) wrote : can't debug in eclipse using 5.0.7

Using server 5.0.6 I could enter debugging mode in eclipse. That fails in 5.0.7.

Eclipse says it uses the following commands:
"/usr/bin/python2.5 -u
/home/ls/Logiciels/eclipse/plugins/org.python.pydev.debug_1.5.5.2010030420/pysrc/pydevd.py
--vm_type python --client localhost --port 0 --file
/home/ls/Projets/OpenERP/server/5.0/bin/openerp-server.py

The PYTHONPATH that will be used is:

/home/ls/Logiciels/eclipse/plugins/org.python.pydev_1.5.5.2010030420/PySrc/pydev_sitecustomize:/usr/lib/python2.5:/usr/lib/python2.5/lib-dynload:/usr/lib/python2.5/lib-tk:/usr/lib/python2.5/plat-linux2:/usr/lib/python2.5/site-packages:/usr/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg:/usr/lib/python2.5/site-packages/DecoratorTools-1.7-py2.5.egg:/usr/lib/python2.5/site-packages/FormEncode-1.0.1-py2.5.egg:/usr/lib/python2.5/site-packages/Numeric:/usr/lib/python2.5/site-packages/PIL:/usr/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg:/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg:/usr/lib/python2.5/site-packages/PasteScript-1.6.3-py2.5.egg:/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/TurboCheetah-1.0-py2.5.egg:/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg:/usr/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg:/usr/lib/python2.5/site-packages/eTiny-1.0.1.1-py2.5.egg:/usr/lib/python2.5/site-packages/gst-0.10:/usr/lib/python2.5/site-packages/gtk-2.0:/usr/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg:/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg:/usr/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-linux-i686.egg:/usr/lib/python25.zip:/usr/local/lib/python2.5/site-packages
"

When the first client connects it fails and the server console shows:
pydev debugger: starting
[2010-03-19 16:44:18,423] DEBUG:psycopg2:installed. Logging using Python logging module
[2010-03-19 16:44:18,430] INFO:server:version - 5.0.7
[2010-03-19 16:44:18,431] INFO:server:addons_path - /home/ls/Projets/OpenERP/addons/fdl-dev
[2010-03-19 16:44:18,431] INFO:server:database hostname - localhost
[2010-03-19 16:44:18,432] INFO:server:database port - 5432
[2010-03-19 16:44:18,432] INFO:server:database user - ls
[2010-03-19 16:44:18,433] INFO:objects:initialising distributed objects services
[2010-03-19 16:44:18,827] INFO:web-services:starting XML-RPC services, port 8069
[2010-03-19 16:44:18,828] INFO:web-services:starting NET-RPC service, port 8070
[2010-03-19 16:44:18,829] INFO:web-services:the server is running, waiting for connections...
[2010-03-19 16:44:22,235] DEBUG:Connection:create cursor to "template1"
[2010-03-19 16:44:22,237] DEBUG:ConnectionPool:ConnectionPool(used=0/count=0/max=64)
[2010-03-19 16:44:22,238] DEBUG:ConnectionPool:Borrow connection to user=ls dbname=template1
[2010-03-19 16:44:22,239] DEBUG:ConnectionPool:ConnectionPool(used=0/count=0/max=64)
[2010-03-19 16:44:22,240] DEBUG:ConnectionPool:Create new connection
> /usr/lib/python2.5/inspect.py(834)getframeinfo()
-> raise TypeError('arg is not a frame or traceback object')
(Pdb)