Re: php editor
| From: | Jochem Maas | Date: | Fri, 14 Jan 2005 17:47:14 +0000 |
| Subject: | Re: php editor | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206395@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
On Thu, 13 Jan 2005 22:11:05 +0000, Justin <ilug@maccarthy.org> wrote:in addition there is the xdebug extension by Derick Rethans its at version 2 but I might suggest starting with 1.3 as its alot simpler to use than 2 (then again if you have experience of things like valgrind/dbg on linux you should have little problems). obviously you need to be able to compile the extension on/for you server (or have someone do it for you) which may not be possible for you (e.g. because its sharedhosting)Is there a Debugger for PHP?php -l filename.php for basic syntax check. If you need more than that you can turn of full error reporting and view the errors directly on the screen: error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); But later when you go to a production environment I'd go with: error_reporting( E_ERROR | E_WARNING | E_PARSE ); ini_set( 'display_errors', 0 ); ini_set( 'log_errors', 1 );