Login Login
MORE

WIDGETS

Widgets

Wanted articles
Who is online?
Article tools

XDebug:Instalazione

From Aino Wiki

Jump to: navigation, search

Lanciare la pagina\script phpinfo.php ed incollare il risultato (copiando con CTRL + A) nella pagina: http://xdebug.org/wizard.php
premere il tasto Analyse my phpinfo() output.


Automaticamente si apre la pagina con le info di installazione specifiche per la nostra versione/piattaforma. Ad esempio:
(http://xdebug.org/wizard.php)
Instructions
Download xdebug-2.2.1.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz  (http://xdebug.org/files/xdebug-2.2.1.tgz)
Run: cd xdebug-2.2.1
Run: phpize
As part of its output it should show:
Configuring for:
...
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
Run: ./configure
Run: make
Run: cp modules/xdebug.so /usr/lib/php5/20090626
Update /etc/php5/apache2/php.ini and change the line
zend_extension = /usr/lib/php5/20090626/xdebug.so
Restart the webserver

Install phpize:

apt-get install php5-dev 

ubuntu1204@ubuntu:~/Downloads/xdebug-2.2.5/xdebug-2.2.5$ phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626


Add in php.ini:

zend_extension = /usr/lib/php5/20090626/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="192.168.1.6"
xdebug.remote_host="192.168.1.65"
xdebug.remote_host="192.168.1.70"
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

and at least restart apache

Guardare qui per il restart Apache:Restart


XDebug

Author