Skip to content

Instantly share code, notes, and snippets.

@Charlynux
Created October 31, 2021 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Charlynux/f74890925a9280df64c0ad835a37b2b4 to your computer and use it in GitHub Desktop.
Save Charlynux/f74890925a9280df64c0ad835a37b2b4 to your computer and use it in GitHub Desktop.
Comment debugger un WAR dans un Wildfly standalone ?

Configurez Wildfly

Dans le fichier standalone.conf.bat (ou standalone.conf si vous lancez le .sh), décommentez :

set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

ou (non testé)

set "DEBUG_MODE=true"
set "DEBUG_PORT=8787"

Dans les deux cas, le debug s'effectuera sur le port 8787.

Branchez votre IDE

Eclipse

TODO

IntelliJ

Créez une configuration de "Remote JVM debug" en saisisant le port 8787.

Cf https://www.jetbrains.com/help/idea/tutorial-remote-debug.html#eb15a531

GO

  • Lancez le serveur
  • Lancez le remote debugging
  • Placez un point d'arrêt
  • Utilisez l'application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment