I'm trying to remotely debug a Spring boot application deployed on a cloud foundry Instance. Below are the steps that I'm following to setup remote debug using eclipse:
- Setting up
JBP_CONFIG_DEBUG: '{enabled: true}'environment variable for the application. - After that I'm setting up the local port forwarding to my app container with
cf ssh -N -T -L 8000:localhost:8000 <APP_NAME> - Then I'm setting up the remote debug configuration in eclipse as shown below image:Eclipse remote debug setup
After that when I try to start remote debug session, It tried to connect to the app but fails with the message at the port forwarded terminal:
connect to localhost:8000 failed: ssh: rejected: connect failed (dial tcp 127.0.0.1:8000: getsockopt: connection refused)
Please help, if anyone has any clue about this error!!