4

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?

3
  • 1
    You could use ndepend to find out the dependencies between classes or assemblies. Commented Feb 23, 2012 at 10:06
  • Thanks. But this tool is not freeware can you tell me something that's freeware. Commented Feb 23, 2012 at 10:14
  • @Balraj: would free trial wont serve the purpose?link Commented Feb 23, 2012 at 10:19

2 Answers 2

4

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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

http://www.doxygen.nl

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.