开发者

PHP code debugger on the fly

开发者 https://www.devze.com 2023-01-19 05:38 出处:网络
i hav开发者_开发问答e a website on my localhost, a quite complicated one with many links is there a program that can debug for example, what happens when i click one link?or i login, etc

i hav开发者_开发问答e a website on my localhost, a quite complicated one with many links is there a program that can debug for example, what happens when i click one link?or i login, etc and show me each function called in each file and everything that's happening with the scripts?


You can use Eclipse + PDT or Netbeans with the PHP plugin and then install a recent version of xdebug. This will allow you to set breakpoints, inspect variables, etc.

If you want to get an overall view of your script/framework you can use the cachegrind files xdebug is able to produce and then use a viewer for those files (e.g. kcachegrind). This will help you understand how many times a function is called, what the most time consuming parts of your application are, etc..


when i click on test debugger it says A time-out occurred when the debug server attempted to connect to the following client hosts/IPs: 192.168.0.33 and 127.0.0.1

0

精彩评论

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