Debugging PHP

From Littledamien Wiki
Jump to navigation Jump to search

Xdebug extension[edit]

This information may not be relevant. See Debugging In PHPStorm With Xdebug And Docker.

Confirming Xdebug installation[edit]

php --version

The output should look something like this:

PHP 5.6.5 (cli) (built: Jan 21 2015 16:27:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans

Installation[edit]

If the "Xdebug" line is missing above, the xdebug extension can be installed with:

pecl install xdebug

See also[edit]