[英]in netbeans and php, how can i find out all the files/areas of a program where a certain function/method is called
basically i have this method, where it's being called all over the place in my php program. 基本上我有这种方法,在我的php程序中到处都有它。 Is there a way in netbeans to find out exactly where or how many times that particular method is being called in my php program?
在netbeans中,有没有一种方法可以确切地找出在我的php程序中该特定方法被调用的位置或次数?
You can install and use xdebug: http://wiki.netbeans.org/HowToConfigureXDebug . 您可以安装和使用xdebug: http ://wiki.netbeans.org/HowToConfigureXDebug。
Go through this article, it also cover tracing, which may help you understand the execution flow: http://devzone.zend.com/1120/introducing-xdebug/ 阅读本文,它还将介绍跟踪,它可以帮助您了解执行流程: http : //devzone.zend.com/1120/introducing-xdebug/
There might be an easier way but if you refactor that method Netbeans should prompt you to search for all usages and update. 也许有一种更简单的方法,但是如果您重构该方法,Netbeans应该提示您搜索所有用法并进行更新。 In this case you just wouldn't update.
在这种情况下,您将不会更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.