How to start JBOSS 7 in debug mode?

jboss7.x

Solution

If you have a look at `bin/standalone.sh`you will discover

# Use --debug to activate debug mode with an optional argument to specify the port.
# Usage : standalone.bat --debug
#         standalone.bat --debug 9797

So, following this, just run the script with the `--debug <port>` parameter.

Problem

I am getting an error(JBAS014750) when i deploy an app in JBOSS 7.So i need to run it in debug mode to find the exact issue.Any help will be appreciated.

Original source