Analyze Exceptions with Pleasure!
October 10th, 2012 by Konstantin BulenkovEvery developer in the Java world has to deal with exceptions. An exception stack trace is the easiest way to tell, what’s wrong in your program. In IntelliJ IDEA we try to make analysis of a stack trace more convenient for developers. As you might know, IntelliJ IDEA has Exception Analyzer, which helps you analyze a stack trace.
Today I would like to tell you briefly, how you can save your time dealing with stack traces.
The everyday story about exceptions:
- Receive an exception by e-mail, bug tracker or messenger
- Copy it to clipboard
- Switch to IntelliJ IDEA
- Go to Analyze → Analyze Stacktrace
- Press OK
Now you can easily skip 4th and 5th steps. Just check the option in Analyze dialog to analyze with pleasure.
Tags: Usability

October 10th, 2012 at 10:06 am
One thing that’s always disappointed me is that the right button popup menu’s analyse stack trace option doesn’t take the currently selected text as the stack trace to work with.
That’s a shame if your window is showing the text or XML output of a junit test run…
October 10th, 2012 at 12:18 pm
Impressive!
Will it work for Android projects also?
October 10th, 2012 at 1:00 pm
freaking awesome
October 10th, 2012 at 1:10 pm
Cool! Didn’t know that.
October 10th, 2012 at 4:51 pm
@SteveL: It will if you press Ctrl+C before you call the analyze action
Could you please describe your issue as a feature request here http://youtrack.jetbrains.com/ ? Thank you.
October 10th, 2012 at 5:22 pm
Can you summarize what the feature is? It might sound silly, but I don’t want to watch a six-minute video to find out.
October 10th, 2012 at 11:50 pm
ohh, genius, Impressive!
October 11th, 2012 at 12:12 am
Hello Bill. First of all it’s 46 seconds video (where did you get 6 mins? O_o ) Secondly, as it’s stated in the post: this feature is ability to skip 2 steps to analyze exceptions. Other words, every time you switch to IntelliJ it scans your clipboard for an exception stack trace. And if there is it will show this stack trace in IntelliJ with hyperlinks to files/lines. Does this make sense now?
October 14th, 2012 at 7:29 pm
Very nice. It’s the little touches like this that makes IDEA such a, yes, *pleasure* to use.
October 19th, 2012 at 2:06 pm
I just submitted a small enhancement request for this new feature… detect non-normalized stack traces. http://youtrack.jetbrains.com/issue/IDEA-93307
October 19th, 2012 at 6:10 pm
@Mark Thanks for the stack trace. I’ve fixed the problem and found a bug in my regexp - missing “_” in package names http://sta.lk/z