Go to monitor tomcat update java option with following properties :
-Dcatalina.home=D:\Tomcat7.0.42
-Dcatalina.base=D:\Tomcat7.0.42
-Djava.endorsed.dirs=D:\Tomcat7.0.42\endorsed
-Djava.io.tmpdir=D:\Tomcat7.0.42\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=D:\Tomcat7.0.42\conf\logging.properties
-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
-XX:MaxPermSize=256m
8000 is default port for remote debug for eclipse.
Run > Debug Configuration >
Put breakpoints on eclipse and you are ready to debug.
-Dcatalina.home=D:\Tomcat7.0.42
-Dcatalina.base=D:\Tomcat7.0.42
-Djava.endorsed.dirs=D:\Tomcat7.0.42\endorsed
-Djava.io.tmpdir=D:\Tomcat7.0.42\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=D:\Tomcat7.0.42\conf\logging.properties
-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
-XX:MaxPermSize=256m
8000 is default port for remote debug for eclipse.
Next goto eclipse and configure remote debug :-
Run > Debug Configuration >
Create a new Remote Java Application using new launch configuration,
Select the project to debug
Select the project to debug
Put breakpoints on eclipse and you are ready to debug.