Topic: Xdebug, a powerful tool for php developers (Read 1906 times)
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8249
42481 credits Members referred : 3
« on: May 17, 2007, 10:18:59 PM »
Just found a great tool for php developers, Xdebug and thought to share it with you
Xdebug is an extension for php which spies your application while it runs and monitoring a few things such as the sequence of your app, how much time each function uses, etc.
All these data are then be written in a text file which you can open with an application like WinCacheGrind under windows or Kcachegrind under KDE (linux, Mac)
The installation is really simple. You just need to download the php library and put it somewhere in your hard disk and put those two lines in your php.ini file :
The first one indicates the path (with the filename) of the library, the second is the directory that Xdebug will use to write the cache files, and the third commands the Xdebug module to run.
In my opinion this module is really good for php benchmarking, and believe me you may find many things regarding your scripts by using it.
If you need some more information check the above articles :
Where are my glasses?
Posts: 21
138 credits Members referred : 0
« Reply #1 on: Jul 20, 2007, 01:59:57 AM »
Thanks for the tool. I think FirePHP is more comfortable. Unfortunately I couldn't test it. With FirePHP you can debug PHP scripts using FireBug in the Firefox. You can install it via PEAR:
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6440
39464 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Jul 20, 2007, 09:38:04 AM »
@Tim, Looks nice, thanks for sharing this!
offtopic: first of all welcome at webdigity, I hope you will enjoy your stay! Great to have more php developer here. Maybe you will start a introduction thread here (http://www.webdigity.com/index.php/board,62.0.html) to tell us a little bit more about you.