Re: [Pydev-code] Debugging Java called from python
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2008-09-12 19:17:14
|
> 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? > Actually, what I said is that you should launch from the java debugger and later go on and from your code call pydevd.settrace() to attach to the remote debugger. I think that doing it the other way around and passing additional arguments to the java and attaching the java debugger as a remote debugger should work too... But one of those should be the remote debugger... Cheers, Fabio > > > 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. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |