Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio find Code Paths/Paths of Execution

I'm looking for a Visual Studio add on which will make the the task of finding code paths easier. Basically, I want something that will find all references of all references, of all references....

For example, I have dozens of forms and dozens of web services. I want to map which form would call what web service instead of right-clicking on the web-service and doing a find all references over and over again through several layers.

Does this tool even exist? I know of ones that will find un-used code but none that will show me execution paths.

like image 788
TomJ Avatar asked Dec 27 '12 22:12

TomJ


People also ask

What is the execution path?

An execution path is a possible flow of control of a program. Each execution path maintains and updates mapping from variables to symbolic expressions during symbolic execution. Control flow statements such as if makes a current execution path diverge into two different execution paths.

How to see where a method is called in Visual Studio?

To display the Call Hierarchy window, right-click in the code editor on the name of a method, property, or constructor call, and then select View Call Hierarchy.

How to Set Executable Path in Visual Studio?

To modify the executable path of a Visual Studio project, it is first necessary to load a C++ project. Then use the context menu to view the properties of it and select the item "VC++ Directories". An item called "Executable Directories" is then visible as in the following screenshot.


1 Answers

I ended up going with NDepend. It does exactly what I need it to do, generate a dependency graph, and had multiple ways to export it as well as visualize the dependencies. In addition, I found the CQLinq queries to be extremely powerful in cutting down the noise to only find the dependencies I was interested in and skipping different layers when necessary.

like image 192
TomJ Avatar answered Nov 12 '22 02:11

TomJ