<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Phillip,<div><br></div><div>is there any chance to get DecoratorTools working with py2.5 / pydev to debug my applications.</div><div><br></div><div>there is a problem with the debugger-hook described here:</div><div><br></div><div><a href="http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html">http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html</a></div><div><br></div><div>there is also a (only for debugging) workaround which doesn't work in my setup as discussed.</div><div><br></div><div>-- output of sample running a turbogears app ---</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">pydev debugger: starting</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">/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</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">&nbsp; def currentThread():</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">Exception exceptions.SystemError: 'error return without exception set' in &lt;generator object at 0x7635d0> ignored</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">Exception exceptions.SystemError: 'error return without exception set' in &lt;generator object at 0x7635d0> ignored</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">PYDEV DEBUGGER WARNING:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">sys.settrace() should not be used when the debugger is being used.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">This may cause the debugger to stop working correctly.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">If this is needed, please check:&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><a href="http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html">http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">to see how to restore the debug tracing back correctly.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">Call Location:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 128); "><span style="color: #ff0000">&nbsp; </span><span style="text-decoration: underline">File "/Library/Python/2.5/site-packages/DecoratorTools-1.7-py2.5.egg/peak/util/decorators.py", line 610, in decorate_assignment</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">&nbsp; &nbsp; sys.settrace(tracer)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">PYDEV DEBUGGER WARNING:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">sys.settrace() should not be used when the debugger is being used.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">This may cause the debugger to stop working correctly.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">If this is needed, please check:&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><a href="http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html">http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">to see how to restore the debug tracing back correctly.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">Call Location:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 128); "><span style="color: #ff0000">&nbsp; </span><span style="text-decoration: underline">File "/Library/Python/2.5/site-packages/DecoratorTools-1.7-py2.5.egg/peak/util/decorators.py", line 606, in uninstall</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">&nbsp; &nbsp; sys.settrace(oldtrace[0])</div></div><div><br></div><div>.... traceback ...</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">&nbsp;&nbsp;File "build/bdist.macosx-10.3-i386/egg/peak/rules/core.py", line 207, in &lt;module></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); ">TypeError: unbound method make_decorator() must be called with Method instance as first argument (got str instance instead)</div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">thanks&nbsp;</span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">Ulrich</span></font></div></div></body></html>