How to remote debug two spring boot applications running in the same container with the same codebase but with different profiles?
问题 I have two spring boot applications running in the same container with the same codebase but with different profiles. One application is for production and the other is for test. Each application run under a different virtual host. The container is tomcat and I've added this in setenv.sh : CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n $CATALINA_OPTS" With eclipse, I can create a debug configuration for Remote Java Application. I've set the Host to the test