Message2056
A bug has been reported against pydev: http://sourceforge.net/tracker/index.php?func=detail&aid=1869450&group_id=85796&atid=577329
and the bug seems to lie in the jython handling of the debugging facility.
Within the pydev debugger, I've observed that after that breakpoint is triggered the first time, the trace_dispatch method that is set through sys.settrace is no longer called.
I've tried going a bit deeper into jython and discovered that when I have a thread and try to run it untraced, jython not only runs that thread untraced, but all the other ones too (it seems that the debug tracing facility is set globally instead of per-thread -- which is the python behaviour).
Pydev tries to run with some threads traced and other not (as this can affect the performance of the debugger a lot), but this feature can't be used from jython (so, debugging can get quite a lot slower).
I've attached a file with a test-case for that.
Also, currently pydev only runs well when each thread has its system state set in each thread (it seems to deadlock if I don't do that in Jython -- just mentioning because I thought it might be related).
import org.python.core as PyCore #@UnresolvedImport
ss = PyCore.PySystemState()
# Note: Py.setSystemState() affects only the current thread.
PyCore.Py.setSystemState(ss) |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:09 | admin | link | issue1870039 messages |
2008-02-20 17:18:09 | admin | create | |
|