Wednesday, 3 February 2016

Windows Command Prompt Essential Tips and Tricks

1. How to open new command window in same location

start cmd /K




Sunday, 31 January 2016

How to debug web application remotely from tomcat server on eclipse

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.




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



Put breakpoints on eclipse and you are ready to debug.