Effective PHP Develop Environment Part.1

Most PHP newbies will ask such a question: Is there any IDE for PHP like Visual Studio for C++/C# or Eclipse for Java ?

Zend Studio ( Commercial ) is Zend Corp’s solution, and someone may like PHPEclipse (Free, based on Eclipse) or PHPed/PHPEdit/Komodo, sth else.

But what’s important for productive code is Debug / Profiling / Code Analysis functions. As you know, Zend Studio provides these function all in one as an intergrated environment, while other editors like PHPEclipse need external debugger to provide these important functions. Xdebug is an almost perfect solution.

FUNCTIONALITY

The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following:

  • stack and function traces in error messages with:
    • full parameter display for user defined functions
    • function name, file name and line indications
    • support for member functions
  • memory allocation
  • protection for infinite recursions

Xdebug also provides:

Supported:
VIM (Free): plugin of DBGp client.
Komodo (Commercial): intergrated
PHPEdit: intergrated
PHPEclipse:
net.sourceforge.phpeclipse.xdebug.core, net.sourceforge.phpeclipse.xdebug.ui

You can debug local/remote PHP scripts by configure php.ini on the target environment for these parameters :

remote_host, remote_port, you know how to configure

remote_mode  req/jit,

remote_handler  GDB/DBGp, I suggest DBGp.

Click here to read more docu on configuring Xdebug

In Part.2 I’ll give out an example of installation and configuration from scratch on a Debian/Linux system, and debug client on Windows.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Default and tagged , . Bookmark the permalink.

2 Responses to Effective PHP Develop Environment Part.1

  1. HelloWorld says:

    Peace people

    We love you

  2. feuvan says:

    Years passed, Zend throws Zend Studio for Eclipse.
    but someone like me hate its slow speed. It’s just as slow as Zend Studio.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">