Debug a remote wildfly application using Intellij

To be able to debug a remote wildfly application, the wildfly application must be started using the following arguments:

--debug 8787

In Intellij:
Run – Debug – Edit Configurations.
In this screen press ‘+’ and choose ‘remote’.
You can name this ‘wildfly remote’ and set the host to the remote server’s ip-addess and set the port to 8787.

By pressing the ‘Debug’ button, a connection to the remote wildfly will be created and you will be able to place breakpoints on the remote wildfly,