Home > Enterprise >  How can I attach a remote java debugger for debugging a rundeck plugin?
How can I attach a remote java debugger for debugging a rundeck plugin?

Time:10-05

I am currently developing a custom java plugin for Rundeck. Is it possible attach a remote debugger on the java process to better understand and debug throughout the process?

Something like adding this flag to rundeck jvm:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

CodePudding user response:

Yes, with this flag it works (without the asterisk and colon):

-agentlib:jdwp=transport=dt_socket,address=<debug_port_to_listen>,server=y,suspend=n

e.g (Rundeck WAR based instance):

java -agentlib:jdwp=transport=dt_socket,address=<debug_port_to_listen>,server=y,suspend=n -jar rundeck.war
  • Related