RE: [PHP] Debugging PHP
| From: | Matt Schroebel | Date: | Wed, 23 Oct 2002 14:13:32 +0000 |
| Subject: | RE: [PHP] Debugging PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121096@lists.php.net to get a copy of this message | ||
Make sure display_errors is on in php.ini and set error_reporting to
E_ALL while coding.
> -----Original Message-----
> From: Glen Lee Edwards [mailto:glen@fcwm.org]
> Sent: Wednesday, October 23, 2002 10:13 AM
> To: php-general@lists.php.net
> Subject: [PHP] Debugging PHP
>
>
> New to PHP: How do I debug a PHP script - where do I look for
> the error
> messages? When a script dies due to a syntax error, I've checked the
> apache error log, but it doesn't show anything. I've been able to
> debug the scripts by commenting out new lines I've written in
> until it
> works, then one by one uncommenting them until it doesn't. It would
> help if I could find a place where it says which line killed the
> script.