How can I start start GlassFish from the command line with debug enabled?

You can start a GlassFish instance with the --debug flag :

asadmin start-domain --debug domain1

This uses the domain.xml debugging information and starts the session in debug mode. Be carefully the domain name have to be typed just after --debug flag.

(initial answer found in this thread)