Debugging techniques

Hi there,

Could anyone suggest the best way to debug plugins? It sounds like there is a way to pass some extra command line parameters to the webserver when it starts up to have a port open ready for incoming debugging connections, and then from Eclipse it should be possible to connect to said port and debug. Has anyone done this? If so could you provide any specific information on how to achieve this? If not, what do people do? Print messages to log files? If so, what is the best way to do this - a colleague here is trying to debug something, and his attempts at printing to the console etc. aren't helping much as it is running under a service, so I said I'd drop a message on here for him, in hope someone might be able to suggest something for him to look at next week.

Many thanks,


1 comment

You should pass the following arguments to JVM on the server side:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555

you should set desired port number in address param.

Then you will be able to connect to JVM from the eclipse or other Java based IDE and debug it as usual Java application.
To be able to debug plugin, check that plugin classes are compiled with debug info.


Please sign in to leave a comment.