Oh, thanks for pointing me to the ‘Enable Frames’ option. I tried warping systems frames to get _getframe by using this module, but I wasn’t successful.
Now I switched on frames and pydevd works.
Now I can write and debug a Rhino.Python script in Eclipse/PyDev.
Only two things a necessary:
Add the path to the pydevd library. pydevd is located in /eclipse/plugins/org.python.pydev_[version]/pysrc/.
Import pydevd and start the debug client at the point the debugging session should start in the script to be debugged:
import pydevd; pydevd.settrace(port=678)
I didn’t do any in depth testes, but it seams to work just fine. Thanks.