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 server host name.
But when I set a breakpoint, the production AND the test application trigger the breakpoint.
How to set the debugging environment such as only the test application triggers the breakpoints?