简体   繁体   English

Visual Studio呼叫层次结构,呼叫站点,位置,说明

[英]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) 在此处找不到解释: https : //msdn.microsoft.com/en-us/library/dd409859.aspx (呼叫层次结构)

Who can explain what "Call Sites" and "Location" are intended for? 谁能解释“呼叫站点”和“位置”的用途?

在此处输入图片说明

在此处输入图片说明

UPDATE Based on the answer that it is character number. 更新根据答案,它是字符数。 在此处输入图片说明

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? 9代表什么?

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 | 位置具有ClassName | FileName - (LineNumber, ??) FileName-(LineNumber,??)

What is the 9 for? 9代表什么?

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). ReportPanels(0)在文件ReportView.vb的第30行中字符位置9处调用Initialize ReportPanels(0)此计数包括前面的空白)。

I hope that can help. 希望能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM