Skip to content

Instantly share code, notes, and snippets.

@smola
Created November 4, 2020 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smola/e306abc7b820f0349e602a502e9d80d1 to your computer and use it in GitHub Desktop.
Save smola/e306abc7b820f0349e602a502e9d80d1 to your computer and use it in GitHub Desktop.
AttachMe helper script
#!/bin/bash
# run_attachme
#
# See https://github.com/JetBrains/attachme
ATTACHME_CONF="$HOME/.attachme/conf.sh"
if [[ ! -f $ATTACHME_CONF ]]; then
echo "$ATTACHME_CONF not found."
echo "See https://github.com/JetBrains/attachme"
exit 1
fi
export JDWP_ARGS="transport=dt_socket,server=y,suspend=y,address=127.0.0.1:0"
source "$ATTACHME_CONF"
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment