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/
0 Comentarios.