I have tried to configure widfly for remote debugging in domain mode, using Eclipse, but it's not successful. Does anyone know the detail configuration for Wildfly domain mode debugging with Eclipse. Thank you!
It depends on what you want to debug :
to debug the Host Controller (that means the server that manages the domain) use the domain.conf file or set the environment variable PROCESS_CONTROLLER_JAVA_OPTS
PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"
to debug a server instance of your domain you have to pass jvm args in your host.xml, for example too debug server-one
<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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With