I have started working on a new project and the code is huge. Documentation for that project is out of date. But i need to understand the code. One way is that i can put break point and debug the code to understand it but since code is huge and it may take about a month to understand in that way. What else or other faster approach i can use to understand the code something like creating its flow diagram from code?
-
1You could use [ndepend](http://www.ndepend.com/) to find out the dependencies between classes or assemblies. – nickvane Feb 23 '12 at 10:06
-
Thanks. But this tool is not freeware can you tell me something that's freeware. – Balraj Singh Feb 23 '12 at 10:14
-
@Balraj: would free trial wont serve the purpose?[link](http://www.ndepend.com/NDependDownload.aspx) – Krishna Feb 23 '12 at 10:19
2 Answers
If you're lucky enough to be using VS 2010 Ultimate then you can generate sequence diagrams simply by right-clicking a method and choosing "Generate Sequence Diagram...", there is a post here with an example.
You'll need Ultimate because you need UML support which is only in Ultimate edition.

- 133
- 2
- 5
I remember doing this for Python last year and found it to be very usefull to understand the code layout (note: not the flow of exececution) but I believe this will give you a good start when you have lot of classes lying around undocumented. The end result is somewhat similar to javadocs.
they also do this for C#. Hope this helps
an example of its usage (generated on c++) can be found at http://xerces.apache.org/xerces-c/apiDocs-3/hierarchy.html
EDIT: This is free, but I believe its worth some donation if it helped :)