Monday, 14 July 2008

JWS debugging

How to debug applications launched using Java Web Start

Just set the following parameter:

set JAVAWS_VM_ARGS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8200

where address specifies the port on which you can connect for remote debugging. Then launch your application using javaws yourfile.jnlp


Outra alternativa:

1.1) Using version 1.5.0 or 1.6.0.

Use the Java[TM] Control Panel to turn

on console and tracing to a file. By default the file will be put in log directory under $deployment.user.home. (for per-platform definition of $deployment.user.home see the Deployment Guide )

Turn on additional tracing messages by adding the following property to the deployment.properties file:
deployment.trace.level=all.


You can also use specific options delimited by "|", all is the same as:
deployment.trace.level=basic|cache|net|temp|security|ext|liveconnect.

The last 2 in the above may only apply to Java[TM] Plug-in and have no effect on Java Web Start apps.

No comments: