Re: [Pydev-code] Debugging Java called from python
Brought to you by:
fabioz
From: Andrew M. <mi...@nd...> - 2008-09-12 19:11:43
|
The Pydev remote debugger does not help me stop at breakpoints in Java code. It still only stops at breakpoints in Python code. Am I missing something? I can stop at Java breakpoints when I run my python script from Eclipse directly with Jython (i.e., without the pydevd.py wrapper). In this scenario, my Eclipse launcher produces a command line like this: C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4088 -Dfile.encoding=Cp1252 -classpath C:\jython2.2.1\jython.jar org.python.util.jython src\example.py However, when I run my python script from Eclipse using PyDev, there is no -agentlib:jdwp in the command line: C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe -classpath "C:\jython2.2.1\jython.jar;...;C:\Program Files\Java\jdk1.6.0_02\jre\lib\ext\tools.jar" -Dpython.security.respectJavaAccessibility=false org.python.util.jython pydevd.py --vm_type jython --client localhost --port 3088 --file src\example.py I believe the -agentlib:jdwp is the link between the launched process and the Eclipse debugger. I think all that I need is for the Java process spawned by PyDev to use the -agentlib:jdwp argument. Any idea how we could enable that in PyDev? Seems like an enhancement that would benefit Jython users generally. --Andy Fabio Zadrozny wrote: > You should be able to start your application from the java debugger > and use the Pydev Extensions remote debugger. See > http://fabioz.com/pydev/manual_adv_remote_debugger.html for details on > using it. |