The following forum message was posted by harely at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3981871:

I'm trying to debug python code that is run from Java using PythonInterpreter. 
>From what I gather, to do this I should use the remote debugger. 
I set up a toy example and followed the instructions in the manual to set up
breakpoints, but it seems to work only partially.
When I put a breakpoint in the main module the process stops when hitting it,
and I can resume, but cannot step, and resuming skips all subsequent
breakpoints.
When I place the breakpoint in an imported module, the trace is not available
in the Debug Server (it just says "unknown"), and the process cannot even be
resumed.

I'm running eclipse 3.6 with PyDev 1.6.3 under Windows XP. Here's my main
method:

                PySystemState state = new PySystemState();
                
                String localCodePath = "src/jythondebug";
                String pythonStdLibPath = "C:/jython2.5.1/Lib";
                String pydevdPath = "C:/Program
Files/eclipse/plugins/org.python.pydev.debug_1.6.3.2010100513/pysrc";
                state.path.append(Py.newString(localCodePath));
                state.path.append(Py.newString(pythonStdLibPath));
                state.path.append(Py.newString(pydevdPath));

                PythonInterpreter interpreter = new PythonInterpreter (null, 
state);

Any ideas?

Thanks
                
                interpreter.execfile (localCodePath + "/main.py");


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to