22, November 2008

Xdebug, a powerful tool for php developers - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 1906 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 credits
Members referred : 3



« on: May 17, 2007, 10:18:59 PM »

Just found a great tool for php developers, Xdebug Visit through proxy 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 Visit through proxy under windows or Kcachegrind Visit through proxy under KDE (linux, Mac)

The installation Visit through proxy 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 Visit through proxy
Faster PHP Apps—Profile Your Code with Xdebug Visit through proxy

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

Last blog : Free Unlimited Bandwith and disk space to good to be true?
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 Visit through proxy
 [/PHP]

You can get the Firefox extension here:
http://www.firephp.org/Downloads/ Visit through proxy
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
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 Visit through proxy) to tell us a little bit more about you.


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8249
42481 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 Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Nov 22, 2008, 03:31:59 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!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.397
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Janai

37 Guests, 5 Users online :

11 users online today:



Readers

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