Hey all! I'm trying to put some breakpoints in my environment (Intellij 2023.3) to do some debugging. I noticed the containers don't expose the 5005 port. Is there a flag or something like that i could use to achieve this and plug my debugger? or should i change the docker-compose file directly?
Update after exposing the 5005 port on docker-compose-dev in the dataverse service:
mvn -Pct clean package docker:run)mvn -Pct clean package docker:run -Dexec.args="-classpath %classpath -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044")Both of them resulted the same connection reset error
image.png
We ask people to configure IntelliJ (and other IDEs) to use port 9009. Please see https://guides.dataverse.org/en/6.2/container/dev-usage.html#ide-trigger-code-deploy
Unfortunely i don't have the ultimate edition :smile_cat:. So I wont be able to do the hot reload. But i was able to connect directly on the 9009 :D Thanks
That exec arg thing won't do anything. It's a Maven property you define and it's not used anywhere.
The port 9009 is in line with upstream Payara docs. I'm not sure how easy it would be to change it.
Also note that JDWP already gives you limited options to change method bodies even without DCEVM (JEP159). Not sure how to use do that in IntelliJ though. Might be good enough for adding some debugging statements etc.
If you want to give HotSwapAgent and DCEVM a shot, feel free to modify the base image and use a different JDK/JRE.
https://medium.com/javarevisited/jdk-17-with-dcevm-and-hotswapagent-4fee7095617a
Thanks!
Last updated: Nov 01 2025 at 14:11 UTC