Tuesday, July 27, 2010

Java Web applications debugging

When debugging Java Web applications I always use remote port debugging. I like my server running out of my IDE, that is all. Separation of concerns is to be applied here *again*.

I try to use port 8787 if it is available and then I setup my IDE to connect to it.

Tomcat Windows

Add a setenv.sh file with the below content. I am adding extra Perm Space memory and that part is irrelevant BTW:

SET JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=256M -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

No comments: