Re: [Pydev-code] Debugging jython called from Java
Brought to you by:
fabioz
From: dperez <cra...@ya...> - 2006-09-27 12:51:39
|
Hi, Each time I create a new interpreter, I use this code: public PythonInterpreter getInterpreter() { PythonInterpreter py = new PythonInterpreter(); py.exec("import pydevd\n"+ "pydevd.settrace(stdoutToServer=1, stderrToServer=1)"); return py; } It works ok. The problem is that the PyDev server debugger stops always in the call to pydevd.settrace(). Can this be avoided? I only want PyDev to stop when I set a breakpoint. dperez wrote: > > Another small problem, I remove a breakpoint and continues to be hit. > This happens even if I restart my app and the debug server. > > Does the call to pydevd.settrace() takes long? > I haven't been able to measure how long it takes, because of the > breakpoint I can't remove. > Is it advisable to leave this call in production? > -- View this message in context: http://www.nabble.com/Debugging-jython-called-from-Java-tf2317042.html#a6526055 Sent from the pydev-code mailing list archive at Nabble.com. |