简体   繁体   English

在netbeans和php中,如何找出某个函数/方法被调用的程序的所有文件/区域

[英]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.

相关问题 如何查找PHP应用程序中调用过函数的次数和位置? - How can I find how many times, and where, a function has been called in a PHP application? 如何找到页面加载时调用的所有 php 文件的列表? - How can I find a list of all the php files that are called when a page loads? 我不断收到这个 PHP 警告,其中调用了 get_page_link 函数,但我如何找出调用它的内容? - I keep getting this PHP warning, where get_page_link function is called, but how do I find out what is calling it? 我怎样才能找到我的所有内存在PHP中的位置? - how can i find out where all my memory has gone in PHP? 如何使用NetBeans在php文件中列出所有被调用的函数 - How to list all called function in a php file using netbeans 这些约束叫做什么? 在哪里可以找到更多? - What are these constraints called? Where can I find out more? 如何找出Laravel4 NotFoundHttpException中调用了什么控制器方法? - How can I find out what controller method was called in a Laravel4 NotFoundHttpException? 在netbeans中,我怎么知道我在用什么函数/方法? - In netbeans, how can I tell what function/method I am in? 如何找出确定特定方法的位置(php / laravel)? - How to find out where a particular method is determined (php/laravel)? php:当 ReflectionMethod 返回错误时,我如何找出 function 的定义位置 - php: When ReflectionMethod returns error, how do I find out where a function is defined
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM