Skip to content

Instantly share code, notes, and snippets.

@davidjgonzalez
Last active July 24, 2016 15:22
Show Gist options
  • Save davidjgonzalez/30ef5587eced4e8dd731623481c756e3 to your computer and use it in GitHub Desktop.
Save davidjgonzalez/30ef5587eced4e8dd731623481c756e3 to your computer and use it in GitHub Desktop.
Shortcut script for starting (random) AEM with intellij debug enabled
#!/bin/bash
# sudo vi /usr/local/bin/debug-aem.sh <- this file
# chmod a+x /usr/local/bin/debug-aem.sh
# debug-aem.sh <jar-file> <debug-port>
java -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${2:-8888} -jar ${1:-cq-author-p4502.jar}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment