没有技术含量。 MAMP下面有两个版本(MAMP/bin/php),他们都有各自的php.ini 在其文件最后,都提供了xdebug块,仅有一行,“;zend_extension=…”貌似去掉zend_extension前的注释就能使用了。 实际上还需要添加一些配置才能进行断点调试的。否则只是在页面上var_dump变量提供更详情的信息而已。
[xdebug] xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autostart=1 zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"