I am wondering if there is any way to list all the calls to a function in source code, so that I could see the dependencies if I modify that function.
One method I use is to search the function name in the "Entire Solution" but I am looking for a better way.
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.
In Visual Studio 2015, View > Other Windows > Resource View. The keyboard shortcut is Ctrl + Shift + E . I find this cleaner than Class View. With Class View Windows you can filter methods/attributes based on access modifier (private/protected/public) etc.
Call Hierarchy option in Visual Studio 2010 helps you to navigate through your code by displaying all calls to and from a selected method or property. This represents a visualize version of Calling Methods or call from a method.
Call stack is set of lines, which is usually read from top to bottom - meaning moving from current locations to callers. The bottom line was executed first. The top line is executed last and it is the current routine.
Right-click on the call and select "Find All References".
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