Comment 3 for bug 375493

Revision history for this message
Bruce Edge (bruce-edge) wrote :

While I agree that it is possible to get the same behavior with the addition of:

JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Djava.awt.headless=true -Xmx128M"

to default/tomcat6, it is finding this information that is non-trivial.

A simple -d switch, or testing for $DEBUG in the init script would be much friendlier. If this is the standard debug incantation for tomcat6, what's wrong with making it so the user doesn't have to google or RTFM to find it.

Perhaps put something like this in the packages default/tomcat6:

# To enable remore debugging uncomment the following line. You will then be able to use a java debugger on port 8000
# JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Djava.awt.headless=true -Xmx128M"

-Bruce