PHP debugging or performance Hook
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
精彩评论