Mac系統(tǒng)下安裝PHP Xdebug
更新時間:2018年03月30日 08:48:38 投稿:laozhang
本文給大家詳細講述了在Mac系統(tǒng)下安裝PHP Xdebug的詳細步驟和流程,一起學習下吧。
Mac下安裝PHP調(diào)試工具Xdebug
安裝步驟
- brew install php70
- brew install php70-xdebug
- php -i | grep xdebug.ini找到xdebug.ini的配置文件我的是/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
- vim /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
配置如下: [xdebug] zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9001 #這個端口不要被占用即可,可以自行指定 xdebug.idekey = PHPSTORM xdebug.remote_autostart=1 xdebug.remote_log=/var/tmp/xdebug.log
在PHPStorm中配置
我的調(diào)試地址:http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
愉快的調(diào)試吧,哈哈
您可能感興趣的文章:
相關文章
PHP流Streams、包裝器wrapper概念與用法實例詳解
這篇文章主要介紹了PHP流Streams、包裝器wrapper概念與用法,結合實例形式分析了php中流Streams與包裝器wrapper的基本概念及使用方法,需要的朋友可以參考下2017-11-11