Extreme Java When vanilla Java is not enough

31Jul/080

Java remote debugging

This one was evil. I have an Windows XP box with a Virtual Box installed and a virtualized Xubuntu. I have a Java process running on Windows and my NetBeans is on Xubuntu, and I wanted to debug that Java process. An ugly problem, but it was really easy to solve. I've just added this option to the process JVM parameters:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=6543,server=y,suspend=n

After this, I can use NB's "Attach Debugger" feature to connect to the remote JVM. Works like a charm!

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)


*

No trackbacks yet.