Eclipse Tip: Navigating stack traces

Most Java developers find themself looking at stack
traces in log files. To locate the origin of these errors in code they
have to find the class then navigate to the line number shown in the
trace.

Eclipse has a nice solution for this. Copy the stack
trace from the log, go to the console view in Eclipse, click on the
drop down menu on the Open Console option and choose the Java Stack Trace Console. Now
paste the stack trace. Eclipse adds hyperlinks to the Java class names
with line numbers. Just click on them to navigate the stack trace. Cool.

Update: From eu, “BTW, there is a nasty bug in this stack trace console feature. After
few usages it make Eclipse freeze. Not sure if this is in core or just
conflicting with some other plugins.” Too bad. Looked like a nice feature.

Vasanth Dharmaraj is a Java Architect currently working for Western Union living in the Bay Area. He is interested in programming, gadgets, formula one... You can follow him on Twitter.

Posted in Eclipse, Java
2 comments on “Eclipse Tip: Navigating stack traces
  1. Andrei says:

    AnyEdit tool does it better – just right click on the text in the stack trace and then "open type under cursor" or "open file under cursor" ;)
    http://andrei.gmxhome.de/anyedit/index.html

  2. eu says:

    BTW, there is a nasty bug in this stack trace console feature. After few usages it make Eclipse freeze. Not sure if this is in core or just conflicting with some other plugins.

Ads By Google