Yes, you can start the server in debug mode and connect to it from another machine using Eclipse. It is not hard to setup, read here: http://wiki.apache.org/tomcat/FAQ/Developing
It works exactly as you describe, using JPDA: http://en.wikipedia.org/wiki/Java_Platform_Debugger_Architecture