I come from a .NET background where I can easily debug a web application by adding a breakpoint and building/running the application.
I\'m working on a JAVA EJB3 app
Enable remote debugging as follows:
-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
8787
.Remote debugging is enabled; set breakpoints as usual.
Or enable remote debugging as follows:
<jvm name="default">
<jvm-options>
<option value="-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
8787
.Remote debugging is enabled; set breakpoints as usual.
The Output - Debugger Console panel should show:
Attaching to localhost:8787
User program running
Or, in domain mode, configure the server's host.xml
as follows:
<server name="server-one" group="main-server-group">
<jvm name="default">
<jvm-options>
<option value="-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
</jvm>
</server>