| 1 |
lars |
1 |
XDEBUG
|
|
|
2 |
------
|
|
|
3 |
|
|
|
4 |
You need to compile Xdebug separately from the rest of PHP. Note, however,
|
|
|
5 |
that you need access to the scripts "phpize" and "php-config". If your
|
|
|
6 |
system does not have "phpize" and "php-config", you will need to compile
|
|
|
7 |
and install PHP from a source tarball first, as these script are
|
|
|
8 |
by-products of the PHP compilation and installation processes. It is
|
|
|
9 |
important that the source version matches the installed version as there
|
|
|
10 |
are slight, but important, differences between PHP versions.
|
|
|
11 |
|
|
|
12 |
Once you have access to "phpize" and "php-config", do the following:
|
|
|
13 |
|
|
|
14 |
1. Unpack the tarball: tar -xzf xdebug-2.1.x.tgz. Note that you do
|
|
|
15 |
not need to unpack the tarball inside the PHP source code tree.
|
|
|
16 |
Xdebug is compiled separately, all by itself, as stated above.
|
|
|
17 |
|
|
|
18 |
2. cd xdebug-2.1.x
|
|
|
19 |
|
|
|
20 |
3. Run phpize: phpize
|
|
|
21 |
(or /path/to/phpize if phpize is not in your path).
|
|
|
22 |
|
|
|
23 |
4. ./configure --enable-xdebug (or: ../configure --enable-xdebug
|
|
|
24 |
--with-php-config=/path/to/php-config if php-config is not in your
|
|
|
25 |
path)
|
|
|
26 |
|
|
|
27 |
5. Run: make
|
|
|
28 |
|
|
|
29 |
6. cp modules/xdebug.so /to/wherever/you/want/it
|
|
|
30 |
|
|
|
31 |
7. add the following line to php.ini:
|
|
|
32 |
zend_extension="/wherever/you/put/it/xdebug.so"
|
|
|
33 |
|
|
|
34 |
8. Restart your webserver.
|
|
|
35 |
|
|
|
36 |
9. Write a PHP page that calls "phpinfo();" Load it in a browser and
|
|
|
37 |
look for the info on the xdebug module. If you see it, you have been
|
|
|
38 |
successful!
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
SUPPORT
|
|
|
42 |
-------
|
|
|
43 |
|
|
|
44 |
If you think that you encountered a bug, please file a detailed bugreport
|
|
|
45 |
at http://bugs.xdebug.org . You are required to create an account, this is
|
|
|
46 |
so that you can be contacted for additional information and to keep out
|
|
|
47 |
spam.
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
Derick Rethans
|
|
|
51 |
derick@xdebug.org
|