These are instructions for installing Xdebug. Please also refer to http://xdebug.org/support.php for support.
You need to compile Xdebug separately from the rest of PHP. Note, however,
that you need access to the scripts
php-config. If your
system does not have
php-config, you will need to compile
and install PHP from a source tarball first, as these script are
by-products of the PHP compilation and installation processes. It is
important that the source version matches the installed version as there
are slight, but important, differences between PHP versions.
Once you have access to
php-config, do the following:
- Unpack the tarball:
tar -xzf xdebug-2.4.x.tgz. Note that you do not need to unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.
- Run phpize:
/path/to/phpizeif phpize is not in your path).
../configure --enable-xdebug --with-php-config=/path/to/php-configif
php-configis not in your path)
cp modules/xdebug.so /to/wherever/you/want/it
- add the following line to
- Restart your webserver.
- Write a PHP page that calls
phpinfo();. Load it in a browser and look for the info on the xdebug module. If you see it, you have been successful!
If you think that you encountered a bug, please file a detailed bug report at http://bugs.xdebug.org. You are required to create an account, this is so that you can be contacted for additional information and to keep out spam.
Derick Rethans — firstname.lastname@example.org