PHP

mac+phpstorm+xdebug 最精炼安装方法

PHP xdebug扩展

brew search xdebug (在出来的结果里面选取一个和自己的PHP版本匹配的扩展)
brew install xdebug-70 ( 我的PHP版本是php7)

在/usr/local/etc/php/7.0/ext-xdebug.so 填上配置

[xdebug]
zend_extension="/usr/local/opt/php70-xdebug/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9001
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/Users/www/debug"
xdebug.idekey="PHPSTORM"

重启PHP ./php70-fpm restart

PHPstorm上面配置xcode
1.先打开preferences里面的language->php 将PHP版本选好

2.DEbug里面改好端口号 (要和xdebug配置文件里面填的端口号一致)

3servers里面填好项目地址

4在storm右上方点击新建然后填好访问的地址(地址栏写啥,就写啥)

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部