Menu

Using PyDev With Mixed Java/Jython

bluelou
2010-09-11
2013-03-15
  • bluelou

    bluelou - 2010-09-11

    I'm using PyDev 1.6.1 and the Remote Debugger in a mixed Java/Jython environment. My application runs in a web application container under Tomcat within Eclipse. The Java code passes control to a Jython main script, which calls other Jython scripts and calls back into Java code, which may invoke Jython scripts. It's strictly a back-and-forth thing, with Java on top.

    I can set and take breakpoints in the Java code before passing control to Jython, and I can set and take breakpoints in the Jython code using the Remote Debugger and pydevd.settrace().

    However, once I'm in the Jython code and have taken a breakpoint there, if it calls a Java class/method, breakpoints in the called Java method are ignored (I can set them in Eclipse, but they're not taken).

    Is it possible to do this (i.e., set and take breakpoints in Java when called from Jython)? If so, how is it done?

     
  • bluelou

    bluelou - 2010-09-11

    My bad. Upon further testing, I was able to confirm that breakpoints in Java code called by Jython are being taken. My original observation to the contrary was incorrect.

    I withdraw the question. ;-)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.