9, February 2010

Xdebug, a powerful tool for php developers - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Xdebug, a powerful tool for php developers
« previous next »
Pages: [1] Print

Author Topic: Xdebug, a powerful tool for php developers  (Read 2832 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 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 Smiley

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 :

Code:
zend_extension_ts = "C:\php\extensions\php_xdebug-2.0.0rc3-4.4.1.dll"
xdebug.profiler_output_dir = "C:\php\tmp"
xdebug.profiler_enable = 1

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 :

How To Really Use Xdebug To Speed Up Your App
Faster PHP Apps?Profile Your Code with Xdebug

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
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:

[PHP]
  pear install http://www.firephp.org/DownloadRelease/FirePHP-PearPackage-0.0.1.4
 [/PHP]

You can get the Firefox extension here:
http://www.firephp.org/Downloads/
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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.


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 credits
Members referred : 3



« Reply #3 on: Jul 20, 2007, 11:19:16 am »

Hmmm, I will try that, thanks Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6580
Tags : php development Xdebug Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Xdebug, a powerful tool for php developers
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 09, 2010, 04:48:45 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.