Last active
December 7, 2015 17:50
-
-
Save rombert/55a2ec6d5c0d6ac87dbd to your computer and use it in GitHub Desktop.
javad script, drop in ~/bin/ and never try to remember the Java debug flags again. Wherever you would use the java command, just use javad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=${SUSPEND:-n},address=${PORT:-30303} "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage examples:
javad -jar my-file.jar
SUSPEND=y javad -cp ... com.example.Main