开发者

PHP debugging or performance Hook

开发者 https://www.devze.com 2022-12-24 16:36 出处:网络
In an interpreted language like PHP it is possible in theory to set up some sort of callback function that would be run indiscriminately after every line of code.I am wondering if such a thing exists

In an interpreted language like PHP it is possible in theory to set up some sort of callback function that would be run indiscriminately after every line of code. I am wondering if such a thing exists in PHP or if such a thing could be accomplish开发者_开发知识库ed in any way? Such a feature could be useful for diagnostics or performance tests. Does anyone know of such a mechanism in PHP?


http://php.net/manual/en/function.register-tick-function.php


I am not that familiar with that but you can check out zend-studio and xdebug

0

精彩评论

暂无评论...
验证码 换一张
取 消