Matthis Kohli Matthis Kohli - 7 months ago 29
Vb.net Question

Visual Studio Call Hierarchy, Call Sites, Location, Explained

I am debugging an application to comprehend the steps until an event of interest.

Didn't find an explanation here: https://msdn.microsoft.com/en-us/library/dd409859.aspx (Call Hierarchy)

Who can explain what "Call Sites" and "Location" are intended for?

enter image description here

enter image description here

UPDATE Based on the answer that it is character number.
enter image description here

My guesses are that:

Call Sites are the objects in memory calling the method.
Location has the ClassName | FileName - (LineNumber, ??)


What is the 9 for?

Answer

Who can explain what "Call Sites" and "Location" are intended for?

My guesses are that:

Call Sites are the objects in memory calling the method.

Location has the ClassName | FileName - (LineNumber, ??)

What is the 9 for?

You're half correct. The "Call Sites" column are the lines in the source itself from where that specific function is being referenced.

The "Location" column is the actual file, line number and character position the specified call is referenced at.

So in the image you posted, the first line reads:

ReportPanels(0).Initialize(GlobalVariables.employee, expd) | ReportView.vb - (30,9)

This reads as:

A call to Initialize is being made by ReportPanels(0) in the file ReportView.vb on line 30 at character position 9 (white space in front is included in this count).

I hope that can help.