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.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to