Debuggin Webstart Clients with Eclipse

Hi, I’m working on a module and I’ve sucessfully it when it runs the Gateway code part.

Now I want to attach the Eclipse’s remote debugger on a Webstart client, so I can test the client part of the module. ¿How can I achieve this?

I’ve already tried launching the JNLP manually, with not sucesss:

javaws -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 "http://<server>:8088/main/system/launch/client_staging/<project>.jnlp"

The client starts up, but no debug port is opened. ¿Any advice?

I’ve got it to work with the following .bat:

@echo off set JAVA_TOOL_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 javaws "http://<server>:8088/main/system/launch/client_staging/<project>.jnlp"

The debugger needs to be run three times for every webstart launch to work.

If anyone has a better way, feel free to comment.

Hi,

I’ve posted another way to do this under this thread.

Regards,