Hello is there a way in Visual Studio 2010 to auto generate a function call flow diagram for an solution with multiple projects in it? I mean what function from which class in which project is calling other functions from the same project or different class or project.
I will really appreciate help with this. I have to dive into a really complicated project with no documentation.
In Visual Studio, in the Solution Explorer, select a solution. On the Project menu, click Add New Item. In the Add New Solution Item dialog box, click Visio Files, and then click UML. Under Templates, click a UML diagram, and then click Open.
In Solution Explorer or Class View, right-click the project and choose View, then choose View Class Diagram.
I think it might depend on the version of visual studio 2010 you have.
If you want a sequence diagram: Right-click anywhere in the method definition, and then click Generate Sequence Diagram. I'm pretty sure this is Ultimate only. MSDN docs: http://msdn.microsoft.com/en-us/library/ee317485.aspx
If you're talking about seeing what function calling is going on, you can select the function name and right click then click view call hierarchy it will show all the functions that call it or it calls. You can also generate a sequence diagram via the function name.
You can also create a class diagram. Either right click on the solution/project/etc->Class Diagram or go to Architecture->Generate Dependency Graph->Class Diagram to make a class dependency diagram for the solution you have open, then you can click the down arrow on a class to view how the functions in that class interact.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With