java 如何找到方法调用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1939317/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I find method calls?
提问by tommy
In NetBeans, how can I find out where methods are being called?
在 NetBeans 中,如何找出调用方法的位置?
I have one particular method in a big project and can't find where its being called.
我在一个大项目中有一个特定的方法,但找不到它被调用的地方。
回答by miku
There is a Find Usagesmenu item when you right-click on a method name.
当您右键单击方法名称时,会出现一个Find Usages菜单项。
Or place your cursor on the method name and press Alt+F7(Find Usages) and Alt+SHIFT+u(to show the Find Usages results).
或者将光标放在方法名称上,然后按Alt+ F7(查找用法)和Alt+ SHIFT+ u(显示查找用法结果)。
回答by Gopi
Right Click on the Corresponding Project and Click Find. Enter the method name and Click Find
右键单击相应的项目,然后单击查找。输入方法名称并单击查找
回答by Nikhil
You should right click the method and look for something like ' Call stack'
您应该右键单击该方法并查找类似“调用堆栈”的内容

