Instalar y activar xdebug en MacPorts

Primero instalar php5-xdebug:

sudo port install php5-xdebug

Luego tan solo hay que añadir las siguientes líneas al fichero php.ini (probablemente /opt/local/etc/php5/php.ini), pero antes comprueba la ruta del fichero de la opción zend_extension:

; NOTE: This line adds the xdebug extension. The macports install will give you the path, 
; or may even add this automatically. Be smart, look for a similar line in your config first.
; (Edit: 06/22/2012)
zend_extension="/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

; General config
;Dumps local variables on exception
xdebug.show_local_vars=On
;Dump server variables
xdebug.dump.SERVER=*
;Dump global variables
xdebug.dump_globals=On
xdebug.collect_params=4;

; Tracing
xdebug.auto_trace=On
xdebug.trace_output_dir=/opt/local/php_traces/
xdebug.show_mem_delta=On
xdebug.collect_return=On

; Profiler
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/opt/local/php_traces

; Debugging. You might need to specify your host with some additional options
xdebug.remote_enable=1

Ref: http://www.littleblackhat.com/blog/2009/02/getting-xdebug-working-on-mac-os-x-with-macports/

Tal vez también te guste

MacPorts: Actualizar definiciones port y renovar los port instalados
Once in a while is good to update your software to get advantage of the latest bug fixes and new features....
Solucionar “mongodb cannot be built while v8 is active” en MacPorts
While updating all the ports of macports I got this error: ---> Configuring mongodb Error: mongodb...
Solucionar “macports checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions” al actualizar Macports en Mac OS X 10.9 Mavericks
I've just upgraded my Mac OS X to Mavericks 10.9. When I tried to update Macports I got an error and...
Usar el php de MacPorts desde la línea de comandos
Some time ago I had installed Apache+MySQL using MacPorts in Mac OS X. It was all OK as long as I used...
Dejar un comentario?

0 Comentarios.

Deje un comentario