一聚教程网:一个值得你收藏的教程网站

热门教程

mac php netbeans xdebug 配置方法详解

时间:2022-06-24 16:23:27 编辑:袖梨 来源:一聚教程网

PHP 配置

/opt/local/var/db/php5/xdebug.ini

 代码如下 复制代码

zend_extension=/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp

1 output_buffering = Off

重启服务器

NetBeans配置

command + , – 选择php标签页
在常规标签中填写
PHP 5 解释器:/opt/local/bin/php(php文件的位置)
调试标签中填写
调试器端口:9000
会话ID:netbeans-xdebug
其他配置根据需要更改

热门栏目