Analyze Exceptions with Pleasure!

Every 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:

  1. Receive an exception by e-mail, bug tracker or messenger
  2. Copy it to clipboard
  3. Switch to IntelliJ IDEA
  4. Go to Analyze → Analyze Stacktrace
  5. Press OK

Now you can easily skip 4th and 5th steps. Just check the option in Analyze dialog to analyze with pleasure.

This entry was posted in Tips & Tricks and tagged . Bookmark the permalink.

11 Responses to Analyze Exceptions with Pleasure!

  1. SteveL says:

    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…

  2. Alex says:

    Impressive!
    Will it work for Android projects also?

  3. joe says:

    freaking awesome

  4. Alex says:

    Cool! Didn’t know that.

  5. @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.

  6. Bill says:

    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.

  7. Leon says:

    ohh, genius, Impressive!

  8. 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?

  9. Mark Vedder says:

    Very nice. It’s the little touches like this that makes IDEA such a, yes, *pleasure* to use.

  10. Mark Vedder says:

    I just submitted a small enhancement request for this new feature… detect non-normalized stack traces. http://youtrack.jetbrains.com/issue/IDEA-93307

  11. @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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>