1.安裝xdebugphp
2.配置xdebugide
zend_extension="/usr/local/Cellar/php@7.2/7.2.18/pecl/20170718/xdebug.so" [xdebug] xdebug.remote_autostart=1 xdebug.default_enable=1 xdebug.remote_port=9001 xdebug.remote_host=127.0.0.1 xdebug.remote_connect_back=1 xdebug.remote_enable=1 xdebug.idekey=PHPSTORM
3.配置PHPstormspa