Enable remote debugging on Wildfly 27 with Java 17

257 views
Skip to first unread message

Ronny Gunawan

unread,
Mar 23, 2023, 11:25:11 PM3/23/23
to WildFly
Hi Guys,

Has anyone able to do remote debugging on Wildfly 27 with Java 17?
I started the Wildfly in standalone mode with debug mode and notice that the debug port was opened after server boot up. However it was closed and stop listening after first attempt of remote debug from eclipse.

Thanks in advance if anyone can share their experience.

Best regards,
Ronny

Richard Opalka

unread,
Mar 24, 2023, 3:43:17 AM3/24/23
to Ronny Gunawan, WildFly
Hello Ronny,

   Does your source code match debugged java library version?

Rio

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/73c0f6e2-adf9-444b-93ab-dc65b724f461n%40googlegroups.com.

Ronny Gunawan

unread,
Mar 27, 2023, 4:14:05 AM3/27/23
to WildFly
Hi Richard,

I've just verified that it used the same source code but the eclipse was using jdk11 while wildfly27 is running on jdk17. Could this cause the issue?

Thanks,
Ronny

Darran Lofthouse

unread,
Mar 27, 2023, 4:16:21 AM3/27/23
to WildFly
Are you sure you ended your first debug session?

You can only attach one debugger to the process so you would not be able to connect again until the first has closed the connection.

Richard Opalka

unread,
Mar 27, 2023, 10:28:23 AM3/27/23
to Ronny Gunawan, WildFly
Hello Ronny,

   If you're debugging Java source code then yes.
If you're debugging your application code then no.

Rio

Reply all
Reply to author
Forward
0 new messages