Debugging PHP: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Xdebug extension ==
== Xdebug extension ==


<p class="alert alert-warning">This information may not be relevant. See [Creating Debugging In PHPStorm With Xdebug And Docker].</p>
<p class="alert alert-warning">This information may not be relevant. See [[Debugging In PHPStorm With Xdebug And Docker]].</p>


=== Confirming Xdebug installation ===
=== Confirming Xdebug installation ===
Line 20: Line 20:
=== Installation ===
=== Installation ===


Installation is dependent on the PHP installation. [http://xdebug.org/wizard.php This wizard] will analyze a `php.ini` file and provide detailed instructions for installation.
If the "Xdebug" line is missing above, the xdebug extension can be installed with:


In the case of the development Windows 2008 server:
<pre>
 
pecl install xdebug
# Download [http://xdebug.org/files/php_xdebug-2.2.7-5.4-vc9-nts.dll php_xdebug-2.2.7-5.4-vc9-nts.dll]
</pre>
# Move the downloaded file to `c:\PHP54\ext`
# Edit `C:\PHP54\php.ini` and add the line
`zend_extension = c:\PHP54\ext\php_xdebug-2.2.7-5.4-vc9-nts.dll`


== See also ==
== See also ==


* [Creating Debugging In PHPStorm With Xdebug And Docker]
* [[Debugging In PHPStorm With Xdebug And Docker]]


[[Category:Symfony]] [[Category:PHP]] [[Category:Web Development]]
[[Category:Symfony]] [[Category:PHP]] [[Category:Web Development]]

Latest revision as of 18:23, 7 September 2019

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]