MAC版 xampp 设置xdebug支持

来源:互联网 发布:手机淘宝我的分享 编辑:程序博客网 时间:2024/06/04 19:58

MAC系统下,下载XAMPP 1.8.3-4 发现默认不支持xdebug,搜索了下文件,有xdebug 但再phpinfo()中没有显示相关的项。


修改php.ini 配置文件 ,在安装目录的/Applications/XAMPP/xamppfiles/etc/php.ini


zend_extension="/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_name=xdebug.cachegrind-out.%s.%p
xdebug.remote_log="/Applications/XAMPP/xamppfiles/logs/xdebug.log"

xdebug.idekey="PHPSTORM"


重启apache发现,xdebug已经装上了。

xdebug

xdebug supportenabledVersion2.2.3IDE KeyPHPSTORM
Supported protocolsRevisionDBGp - Common DeBuGger Protocol$Revision: 1.145 $
DirectiveLocal ValueMaster Valuexdebug.auto_traceOffOffxdebug.cli_color00xdebug.collect_assignmentsOffOffxdebug.collect_includesOnOn

0 0
原创粉丝点击