寻找一种工具来帮助我分析和理解他人的code [英] Looking for a tool to help me analyze and understand others' code

查看:164
本文介绍了寻找一种工具来帮助我分析和理解他人的code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找一个工具来帮助我更快地掌握别人的code。通常我正与分布在3-5模块(DLL或.NET程序集)10-15方法调用块。我是后是可以用来画一个注解调用图中10-30分钟的工具。

I am looking for a tool to help me to more quickly grasp someone else's code. Usually I am working with 10-15 method call chunks scattered across 3-5 modules (DLLs or .NET assemblies). What I am after is a tool which could be used to draw an annotated call diagram in 10-30 minutes.

我觉得它应该看起来像某种类型的工作流程,并结合UML图的组合不UML编辑的怪物。只需拖放屏幕上的十几矩形,添加一个方法名到每个(可选择:模块名,参数等)。添加一个快速注意到了这个方法做,在发生什么,有什么熄灭,等,然后将这些数字(矩形)以不同的看着箭头指示哪种类型调用此方法是:简单的通话,呼叫,该呼叫没有返回值,远程打电话等。

I think it should look like a some kind of combination of a workflow and combination UML diagrams without the monstrosity of UML editors. Just drop a dozen rectangles on the screen, add a method name to each (and optionally: module name, parameters, etc). Add a quick note what this method does, what goes in, what goes out, etc. Then connect these figures (rectangles) with a different looking arrows to indicate which type this method call is: simple call, a call which returns nothing, remote call, etc.

最重要的事情 - 该工具应该很容易使用。否则,我可以只火了MS Word和借鉴它。但是,这不会是一件容易的事。

The important thing - the tool should be easy to use. Otherwise, I could just fire up MS Word and draw it there. But that is not going to be an easy task.

感谢。

推荐答案

红门的.net反射是一种流行的免费的调试工具,逆向工程和这样的。

Red Gate's .NET Reflector is a popular free tool for debugging, reverse-engineering and such.

要恭维话,有几个方便的加载项(也是免费的),这将帮助您可视化与图:

To compliment it, there are several handy add-ins (also free) which will help you visualize with diagrams:

  1. 图表
  2. SequenceViz (请注意,这是种繁琐的安装和配置,你需要安装 GNU PlotUtils的Win32移植的第一,并且它不是在说明很清楚的。)
  1. Graph
  2. SequenceViz (Note that this is kind of tedious to install and configure. You will need to install the Win32 port of GNU PlotUtils first, and it isn't very clear in the instructions.)

这篇关于寻找一种工具来帮助我分析和理解他人的code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆