Como Xdebug para NetBeans

De CidesaWiki

(Diferencias entre revisiones)
Saltar a navegación, buscar
 
(8 ediciones intermedias no se muestran.)
Línea 1: Línea 1:
-
Lo Primero, que hay que hacer es instalar php5-dev
+
* Desde la Consola
-
Desde la Consola
+
<pre>
 +
sudo apt-get install php5-xdebug
 +
</pre>
-
sudo apt-get install php5-dev
+
* Luego crear el archivo xdebug.ini
-
Descargar los fuentes de XDebug
+
<pre>
 +
sudo nano /etc/php5/apache2/conf.d/xdebug.ini
 +
</pre>
 +
* Agregar las siguientes líneas al final del archivo de configuración
-
svn co svn://svn.xdebug.org/svn/xdebug/xdebug/trunk xdebug
+
<pre>
-
 
+
-
cd xdebug/
+
-
 
+
-
phpize
+
-
 
+
-
./configure
+
-
 
+
-
make
+
-
 
+
-
sudo make install
+
-
 
+
-
Buscar la dirección '''Installing shared extensions:    /usr/lib/php5/20090626+lfs/'''
+
-
 
+
-
 
+
-
sudo nano /etc/php5/conf.d/xdebug.ini
+
-
 
+
-
Copiar lo siguiente y reemplazar donde dice /path/to/xdebug.so por la dirección anteriormente buscada /usr/lib/php5/20090626+lfs
+
-
 
+
-
zend_extension=/path/to/xdebug.so
+
xdebug.remote_enable=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_handler=dbgp
Línea 33: Línea 19:
xdebug.remote_host=127.0.0.1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_port=9000
 +
</pre>
 +
 +
* Por último, reiniciar el apache
 +
 +
<pre>
 +
sudo /etc/init.d/apache2 restart
 +
</pre>

Última versión de 14:58 8 feb 2012

sudo apt-get install php5-xdebug
sudo nano /etc/php5/apache2/conf.d/xdebug.ini
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
sudo /etc/init.d/apache2 restart
Herramientas personales
Espacios de nombres
Variantes
Acciones
Navegación
Herramientas