### Eclipse Workspace Patch 1.0 #P org.python.pydev.debug Index: pysrc/pydevd.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/pysrc/pydevd.py,v retrieving revision 1.75 diff -u -r1.75 pydevd.py --- pysrc/pydevd.py 16 Jun 2007 17:13:01 -0000 1.75 +++ pysrc/pydevd.py 19 Jul 2007 18:58:02 -0000 @@ -87,6 +87,13 @@ def run(self): time.sleep(5) #this one will only start later on (because otherwise we may not have any non-daemon threads + # If running under jython... + if sys.platform.startswith("java"): + import org.python.core as PyCore + ss = PyCore.PySystemState() + # Note: Py.setSystemState() affects only the current thread. + PyCore.Py.setSystemState(ss) + pydevd_tracing.SetTrace(None) # no debugging on this thread try: while not self.killReceived: Index: pysrc/pydevd_comm.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/pysrc/pydevd_comm.py,v retrieving revision 1.28 diff -u -r1.28 pydevd_comm.py --- pysrc/pydevd_comm.py 16 Jun 2007 17:13:01 -0000 1.28 +++ pysrc/pydevd_comm.py 19 Jul 2007 18:58:02 -0000 @@ -153,6 +153,13 @@ self.setName("pydevd.Reader") def run(self): + # If running under jython... + if sys.platform.startswith("java"): + import org.python.core as PyCore + ss = PyCore.PySystemState() + # Note: Py.setSystemState() affects only the current thread. + PyCore.Py.setSystemState(ss) + pydevd_tracing.SetTrace(None) # no debugging on this thread buffer = "" try: @@ -193,6 +200,13 @@ def run(self): """ just loop and write responses """ + # If running under jython... + if sys.platform.startswith("java"): + import org.python.core as PyCore + ss = PyCore.PySystemState() + # Note: Py.setSystemState() affects only the current thread. + PyCore.Py.setSystemState(ss) + pydevd_tracing.SetTrace(None) # no debugging on this thread try: while not self.killReceived: