FVN Tech Blog Coding or Programming in C#/PHP | Linux or Windows Server Backend | New Media | SNS | Misc …

28Mar/072

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)
Tagged as: , 2 Comments

Pages

Recent Posts

Categories

Tags

apache baidu C# Debian dotNET economy gadget GMA Google hulu IE7 Intel jiwai lighttpd Linux Mobile mod_extforward mojiti nginx oscanner OVAL Parallel PHP phproxy politics proxy Python regsvr32 SNS squid subversion trac TV Vista Visual Studio Windows Live Windows Mobile WLM wordpress wow WTL wzdftpd XDebug XML Zend Framework

Archives

Meta

友情链接与广告

Free web proxy
Old friends:

NSClub: