On Wed, 13 Apr 2011, Roman Chyla wrote:
> There is a *slight* trade off -- the remote debugger might be useful
> for debugging console applications, when Invenio is not yet installed
> (in the source tree)
Most people are doing console debugging directly via pdb/ipdb/ipython or
`winpdb some_script.py' direct techniques anyway, so I guess this need
is probably well covered that way already?
> So yes, if you prefer the separate config, I we should do it.
OK, `I we' shall send you a patch proposal soon. :)
BTW, we also need to take care of imports and warnings in a more gentle
way; e.g. personally I don't use Eclipse, so I don't have pydev, and for
any CLI operation I get:
| $ sudo -u www-data /opt/invenio/bin/webcoll --help
|
| Traceback (most recent call last):
| File "/usr/local/lib/python2.6/dist-packages/invenio/remote_debugger.py",
line 194, in <module>
| globals()[name] = __import__(path, fromlist=path.split('.'))
| ImportError: No module named pydev.pydevd_file_utils
| Error in remote_debugger, import of the pydev.pydevd_file_utils
failedTraceback (most recent call last):
| File "/usr/local/lib/python2.6/dist-packages/invenio/remote_debugger.py",
line 194, in <module>
| globals()[name] = __import__(path, fromlist=path.split('.'))
| ImportError: No module named pydev.pydevd
| Error in remote_debugger, import of the pydev.pydevd
failed/usr/lib/python2.6/sets.py:63: DeprecationWarning: functions overriding
warnings.showwarning() must support the 'line' argument
| stacklevel=2)
| /usr/lib/pymodules/python2.6/rpdb2.py:308: DeprecationWarning: the sets
module is deprecated
| import sets
| /usr/lib/python2.6/popen2.py:13: DeprecationWarning: functions overriding
warnings.showwarning() must support the 'line' argument
| DeprecationWarning, stacklevel=2)
| /usr/lib/pymodules/python2.6/rpdb2.py:313: DeprecationWarning: The popen2
module is deprecated. Use the subprocess module.
| import popen2
Best regards
--
Tibor Simko