[UPHPU] IDE/debug options for PHP

Daniel C. dcrookston at gmail.com
Wed Dec 6 16:50:36 MST 2006


On 12/6/06, Larry Hedrick <lhedrick at dharmatech.org> wrote:
> Hello All,
>
> I am new to UPHPU.
>
> I have started working on a LAMP based content management system called
> DRUPAL with an optional contact manager module called civicrm.

snip

> Have been coding for years but I am somewhat new to PHP.  I can read the
> code fine just don't know how to debug it like using a source level tool for
> "C" code.
>
> Larry

tail -f /var/log/httpd/error_log

Or whatever your log file is.  That will show lots of errors, or not,
depending on your settings in php.ini.

Also, what kind of bugs are you looking for?  The error log will only
show bugs that PHP recognizes - syntax errors and stuff.  It'll
completely miss more subtle things.

You can also use print_r.  This is echoing something out, which you've
said you want to avoid, but it is handy.

There's also the Zend Server, which has a new name these days.  It
gives you more debugging options, but I don't think it's terribly
popular for several reasons which I won't list here because I'm not
terribly familiar with them.

Dan


More information about the UPHPU mailing list