Wednesday, November 2, 2011

Debug mode in Eclipse and Tomcat

For Tomcat:
  set JPDA_ADDRESS=8000
  set JPDA_TRANSPORT=dt_socket
  catalina.bat jpda start

For Eclipse:
  Set Connection Port (8000) and Connection Host (localhost) in "Run > Debug Configurations"
  Configuration Type: "Remote Java Application"
  Set connection port to "8000"
  Set connection host to "localhost"

No comments:

Post a Comment

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...