[ACCEPTED]-Tool to visualize code flow in Java?-code-analysis

Accepted answer
Score: 11

Maybe Ctrl + Alt + H in Eclipse / IntelliJ IDEA 2 ? (albo present in NB somewhere) Or "data 1 flow from/to" in IntelliJ IDEA?

Score: 5

http://code.google.com/p/jtracert/ was discontinued. The link for new project 1 is: https://github.com/bedrin/jsonde

Score: 3

If found that doxygen works for Java also.

0

Score: 2

Source Navigator says it does Java, though 1 I've only ever used it for C/C++ myself. http://developer.berlios.de/projects/sourcenav

Score: 1

JBuilder's UML view goes some of the way

0

Score: 1

IBM has an old (2004) structure analysis tool that does some visualization 2 of Java code.

Netbeans' UML does a decent job reverse 1 engineering the code too.

Score: 1

I have tested this and is AWESOME for automatic 1 sequence diagram generation

https://github.com/bedrin/jsonde

Score: 1

HandyEdit has made a plugin that does exactly 1 this: http://plugins.intellij.net/plugin/?id=3739

Score: 1

You mean something like Jeliot and jGrasp?

0

Score: 0

In UML 2 there are two basic categories 26 of diagrams: structure diagrams and behavior 25 diagrams. Every UML diagram belongs to one 24 these two diagram categories. The purpose 23 of structure diagrams is to show the static 22 structure of the system being modeled. They 21 include the class, component, and or object 20 diagrams. Behavioral diagrams, on the other 19 hand, show the dynamic behavior between 18 the objects in the system, including things 17 like their methods, collaborations, and 16 activities. Example behavior diagrams are 15 activity, use case, and sequence diagrams.

Here, my 14 understanding is that the OP is asking for 13 a tool to visualize code flow (this is the title 12 of the question), i.e. dynamic behavior. A 11 perfect diagram for this would be the sequence 10 diagram.

But, AFAIK, neither UML reverse 9 engineering tools nor Doxygen can figure 8 out such diagrams from sources. These tools 7 know how to generate structure diagrams 6 (e.g. class diagram), but not behavior diagrams 5 (this would require execution). So these 4 tools doesn't answer the question (even 3 for C++).

IMO, to visualize the code flow, you'll 2 have to look at the call hierarchy as someone 1 pointed out.

Score: 0

My favorite one was Creole. Unfortunately last 6 update was made on August 10, 2007... but 5 still it is worth trying.

Another option, but 4 more for the architecture visualization 3 than code flow, is Structure101, which is 2 a great tool and absolutely worth to check 1 out.

Score: 0

Check out Onyem JTracer The tool automatically generates 3 execution flow diagrams by analysis of your 2 java program. I have used it with a relatively 1 large codebase as well.

Score: 0

Heatlamp will visualize running Java code. It can 1 also visualize Java stack traces.

Score: 0

I think Zeta Code seeks to do this.

0

More Related questions