Diver is an extensive set of tools that brings advanced software analysis right into your Eclipse IDE. There is a long list of features, and here are a few highlights. See the documentation for a more extensive list of features, and how to use them.
- Many tools like this may cost you a lot of money to use. But Diver is 100% free and open source. Diver represents years of research and development, and you can use it for free.
Trace Your Java Programs
- Just run it. It is as easy as any launch in Eclipse. Simply create a new trace configuration and hit Run.
- Or debug it. You can launch in debug mode as well, and trace only when you hit breakpoints.
- Control the trace. You can pause and restart a trace at any time. A simple button in the Debug View gives you complete control.
- See it in different ways. You can filter your trace so that it only logs the classes and packages that you are interested in. Most other tools force you to commit to this at the start. Diver, though, lets you change your mind at any time, so you can see your trace from different perspectives.
- Launch Eclipse applications. Trace support for Eclipse is also included.
Visualize Your Traces
- List your traces. Diver traces are stored outside of the workspace, and automatically indexed and viewed so that you can gain quick access to them.
- Sequence Diagrams. Visualize your trace using an advanced, fast, and attractive sequence diagram visualization, that is directly linked with your source code.
- Hide what you don’t want. Many of the elements in the sequence diagram can be collapsed or expanded to reveal only the things that you want to see. This includes lifelines, activation boxes, and groups of related messages.
- See it in time. Diver not only shows you what has occurred, but also, when it occurred. Diver gives you a timeline that allows you to filter your diagram and quickly understand when and why method calls happened.
- Compress loops. Rather than showing you repeated calls thousands of times, Diver compresses loops into coherent groups, and does so using your source code. So you can not only see that messages were repeated, but also why they were.
- Saving state. Your diagram state is automatically saved as you explore it, so the next time you open it, you won’t have to try and search again.
Understand Your Code
- See the code. Nearly all elements in the visualizations are linked directly back to source code. Just double click, and see the source.
- Read the code. Diver offers a code coverage feature which will let you see what lines of code were called, right in your source code view.
- Unclutter your Java views. Diver offers advanced filters that will limit your package explorer to showing only those elements that appear in your trace.
- Compare use cases. Ever wonder what the difference was between two different runs of the same program? Diver will show you.