Fog Creek Software
g
Discussion Board




eclipse plugin for ejb debugging

anyone know of a good eclipse plugin which can be used for debugging EJBs (preferably free).

Tarun Upadhyay
Thursday, October 9, 2003

I can debug EJBs with Eclipse v 1.0!
Its free too!!

BSA
Friday, October 10, 2003

The technique is called remote debugging.

Launch the EJB container in debug mode and note the dt_socket port (gotta be mentioned somewhere in the logs or server console).

This port is used by the Java debugger to connect to the remote JVM and interact with it by sending various signals like "set breakpoint", "step into", etc.

Then, in Eclipse, open the source file of the EJB you want  to debug and create a "Remote Runtime Configuration", where you specify the host running the EJB container and the port of the JVM on that host that executes the EJB.

Then (again in Eclipse), set the breakpoint in your code and trigger the EJB on the remote host through a client of any kind.

Voila!

PS Eclipse has good help docs.

Pavel Levin
Friday, October 10, 2003

*  Recent Topics

*  Fog Creek Home