Last active
August 29, 2015 14:09
-
-
Save v6ak/94ce8d80b97321a452d0 to your computer and use it in GitHub Desktop.
IDEA debug info dump
This file contains hidden or 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 | |
| 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