I have a server running on docker. I need to connect to the docker for debugging using eclipse.
I have a server running on docker. I need to connect to the docker for debugging using eclipse.
Adding to the solution from AliReza19330:
With Java 8 which is used in Tomcat 8.5.34-jre8, the docker run line would be
docker run -p 9000:8000 -e JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" tomcat:8.5.34-jre8