[PEAK] DecoratorTools and pydev (eclipse) debugging

Ulrich Eck lists at net-labs.de
Fri Jun 27 14:01:41 EDT 2008


Hi Phillip,

is there any chance to get DecoratorTools working with py2.5 / pydev  
to debug my applications.

there is a problem with the debugger-hook described here:

http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html

there is also a (only for debugging) workaround which doesn't work in  
my setup as discussed.

-- output of sample running a turbogears app ---

pydev debugger: starting
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
threading.py:695: RuntimeWarning: tp_compare didn't return -1 or -2  
for exception
   def currentThread():
Exception exceptions.SystemError: 'error return without exception set'  
in <generator object at 0x7635d0> ignored
Exception exceptions.SystemError: 'error return without exception set'  
in <generator object at 0x7635d0> ignored

PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
This may cause the debugger to stop working correctly.
If this is needed, please check:
http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html
to see how to restore the debug tracing back correctly.
Call Location:
   File "/Library/Python/2.5/site-packages/DecoratorTools-1.7- 
py2.5.egg/peak/util/decorators.py", line 610, in decorate_assignment
     sys.settrace(tracer)


PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
This may cause the debugger to stop working correctly.
If this is needed, please check:
http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html
to see how to restore the debug tracing back correctly.
Call Location:
   File "/Library/Python/2.5/site-packages/DecoratorTools-1.7- 
py2.5.egg/peak/util/decorators.py", line 606, in uninstall
     sys.settrace(oldtrace[0])

.... traceback ...

   File "build/bdist.macosx-10.3-i386/egg/peak/rules/core.py", line  
207, in <module>
TypeError: unbound method make_decorator() must be called with Method  
instance as first argument (got str instance instead)


thanks

Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20080627/e7ddf103/attachment.html


More information about the PEAK mailing list