i have 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?
+1
A:
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..
halfdan
2010-10-07 10:35:52
thanks , downloading
adam
2010-10-07 10:37:56
Create a new project and import your sources. You need to install xdebug aswell (activate the extension in the php.ini).
halfdan
2010-10-07 13:45:30
i installed and imported i can see all my files there , but i would like to set up breakpoints on the actual page in a browser, and to see each step that runs in the background of a login operation for example
adam
2010-10-07 13:46:23
A:
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
adams
2010-10-07 14:59:50
That is very likely because you didn't setup xdebug. Install it as I already suggested in my answer + comment..
halfdan
2010-10-07 15:40:06