Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
更多上下文:
我有一个被调用的方法,断点放在这个方法的开头。
一旦调试器点击了这个 - 我怎么知道代码的其他部分调用了该方法?(即在它到达这个断点之前)
在调试菜单中,有一个“Windows”子菜单。在其中选择“调用堆栈”,您将获得堆栈跟踪。您甚至可以交互地单击每一行以在“遍历”堆栈时查看相应源文件中的方法调用。
注意:此选项仅在调试时显示。