-2

Let's say I have function A(//Code: To Catch Some Error) in a class and that function A() is being called in 100 different pages.

  1. I have put one breakpoint at that function A().
  2. When I run the solution in the visual studio, this breakpoint is being hit.

Q: Is there any way to find from which page did this function A() was called before hitting the breakpoint?

4

1 回答 1

2

您最好的选择是查看调用堆栈。默认情况下,当您遇到断点时,Visual Studio 将在主代码窗口下方显示的窗口中包含调用堆栈窗口。您将看到将您带到断点的嵌套函数调用列表。双击任何函数应该在调试器中打开它,假设你有它的源代码(其中一些将是系统函数)。

于 2013-02-01T23:03:50.723 回答