Debugging application launched by JNLP in Eclipse
843802Jan 19 2009 — edited Apr 13 2009Hello,
How do you debug an application launched by web start in Eclipse?
I have googled a couple of days and found many suggestions to get this to work, but still I fail.
I'm trying to debug an application (in Eclipse), which is launched with WebStart. I downloaded the jnlp file, so I'm starting it with "javaws <filename>" (rather than javaws <jnlp-url>). I've been trying to add debugging parameters to the command:
1. javaws -J-agentlib:jdwp=transport=dt_socket,suspend=n,address=127.0.0.1:8200 or
2. javaws -J-agentlib:jdwp=transport=dt_socket,server=y,address=8200
...and many other variations of the above, but so far, I keep attaching the javaws vm, rather than the vm it launches for the application! For example, if I make Eclipse the "server" (socket listen), I can see the debugger to start in eclipse when javaws starts, only to die off when the actual application starts! I also tried it the other way around (having the application to listen for 8200), but if I wait for the application to start, I only get "connection refused".
I also tried putting the debugging arguments inside the JNLP file for the j2se-tag (java_vm_arguments), but apparently it does not support all needed arguments for debugging(?).
Console output:
Java Web Start 1.6.0_11
Using JRE version 1.5.0_15 Java HotSpot(TM) Client VM
Thanks!