Mac系统下安装PHP Xdebug

Mac下安装PHP调试工具Xdebug

安装步骤

  1. brew install PHP70
  2. brew install PHP70-xdebug
  3. PHP -i | grep xdebug.ini找到xdebug.ini的配置文件我的是/usr/local/etc/PHP/7.0/conf.d/ext-xdebug.ini
  4. vim /usr/local/etc/PHP/7.0/conf.d/ext-xdebug.ini
rush:xml;"> 配置如下: [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中配置

我的调试地址:http://localhost:8080/email/send.PHP?XDEBUG_SESSION_START=15550

愉快的调试吧,哈哈

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...