How to generate flow diagram from ASP.Net and C#.Net code?

狂风中的少年 提交于 2019-12-07 18:35:19

问题


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?


回答1:


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.




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



来源:https://stackoverflow.com/questions/9410767/how-to-generate-flow-diagram-from-asp-net-and-c-net-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!