![]() |
|||||||||||||||||||||||||
|
XDEBUG EXTENSION FOR PHP | DOCUMENTATION
home |
updates |
documentation |
license |
support
» Documentation for: Xdebug 2 » Feature: Installation This section describes on how to install Xdebug. Precompiled ModulesThere are a few precompiled modules for Windows, they are all for the non-debug version of PHP. See the links on the right side. Installing the precompiled modules is easy. Just place them in a directory, and add the following line to php.ini: (don't forget to change the path and filename to the correct one — but make sure you use the full path) zend_extension_ts="c:/php/modules/php_xdebug-4.4.1-2.0.2.dll" PECL InstallationAs of Xdebug 0.9.0 you can install Xdebug through PEAR/PECL. This only works with with PEAR version 0.9.1-dev or higher and some UNIX. Installing with PEAR/PECL is as easy as: # pecl install xdebug but you still need to add the correct line to your php.ini: (don't forget to change the path and filename to the correct one — but make sure you use the full path) zend_extension="/usr/local/php/modules/xdebug.so" Installation From SourceYou can download the source of the latest stable release 2.0.2. Alternatively you can obtain Xdebug from CVS: cvs -d :pserver:srmread@cvs.xdebug.org:/repository login CVS password: srmread cvs -d :pserver:srmread@cvs.xdebug.org:/repository co xdebug This will checkout the latest development version which is currently 2.1.0-dev. Compiling
You compile Xdebug separately from the rest of PHP. Note, however,
that you need access to the scripts 'phpize' and 'php-config'. If
your system does not have 'phpize' and '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. (Debian users
can install the required tools with
Configure PHP to Use Xdebug
CompatibilityXdebug does not work together with the Zend Optimizer or any other Zend extension (DBG, APD etc). This is due to compatibility problems with those modules. We will be working on figuring out what the problems are, and of course try to fix those. phpize Output Table
Debugclient InstallationUnpack the Xdebug source tarball and issue the following commands: $ cd debugclient $ ./configure --with-libedit $ make # make install
This will install the debugclient binary in /usr/local/bin unless you don't
have libedit installed on your system. You can either install it, or leave
out the '--with-libedit' option to configure. Debian 'unstable' users can
install the library with If the configure script can not find libedit and you are sure you have (and it's headers) installed correctly and you get link errors like the following in your configure.log: /usr/lib64/libedit.so: undefined reference to `tgetnum' /usr/lib64/libedit.so: undefined reference to `tgoto' /usr/lib64/libedit.so: undefined reference to `tgetflag' /usr/lib64/libedit.so: undefined reference to `tputs' /usr/lib64/libedit.so: undefined reference to `tgetent' /usr/lib64/libedit.so: undefined reference to `tgetstr' collect2: ld returned 1 exit status you need to change your configure command to: $ LDFLAGS=-lncurses ./configure --with-libedit |
|
||||||||||||||||||||||||
|
This site and all of its contents are
Copyright © 2002-2007 by Derick Rethans.
All rights reserved. |
|||||||||||||||||||||||||
