DecoratorTools and pydev (eclipse) debugging

Ulrich Eck <[email protected]>
Newsgroups gmane.comp.python.peak
Message-ID <[email protected]>
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

_______________________________________________
PEAK mailing list
[email protected]
http://www.eby-sarna.com/mailman/listinfo/peak
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.