How do you connect to and debug a remote Java application/server?
Click Run > External Tools.
Click Run > Debug As > Remote Application.
You cannot do this in Eclipse.
Create and run a configuration under Run > Debug Configurations > Remote Java Application.