Skip to content

Instantly share code, notes, and snippets.

@v6ak
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save v6ak/94ce8d80b97321a452d0 to your computer and use it in GitHub Desktop.

Select an option

Save v6ak/94ce8d80b97321a452d0 to your computer and use it in GitHub Desktop.
IDEA debug info dump
#!/bin/sh
IDEA_VERSION=14
# Note that thread dump will not work well when you have launched other IDEA-like IDE (e.g. CLion, PhpStorm, PyCharm, RubyMine), since it has the same main class.
time=$(date +%Y-%m-%d--%H:%M:%S)
jps -l | grep ' com.intellij.idea.Main$' | sed 's/ .*$//' | xargs jstack > "/tmp/idea-$time.threads"
cp ~/.IntelliJIdea$IDEA_VERSION/system/log/idea.log "/tmp/idea-$time.log"
notify-send "Saved as /tmp/idea-$time.{log,threads}."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment