Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] Re: Where do -agentlib:jdwp args come from?

I tried inserting the JVM argument, and got this in my console:

  ERROR: transport error 202: connect failed: Connection refused
  ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

My Eclipse-generated command line was like:

   "C:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe"
       -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:8000
-classpath "C:/jython2.2.1/jython.jar;...;C:\Program Files\Java\jdk1.6.0_02\jre\lib\ext\tools.jar" "-Dpython.path=C:\Workspace\myPy\src;C:\jython2.2.1\Lib;...;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 1221 --file C:\Workspace\myPy\src\example.py


Andrew Mickish wrote:
Using the PyDev plugin, I cannot step into Java (Jython) code executed by the script.

Can I add a JVM argument like -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:2959 to activate the Java level debugger?

How do I know what port to specify? Will the JVM listen on the specified port? How will Eclipse know to connect?

Thanks!

--Andrew Mickish



Back to the top