valet-phpstorm-xdebug-phpunit-qcachegrind(mac)
一、配置单 php 文件的 Debug
1、PHPStorm: Preferences > Languages & Frameworks > PHP
> PHP language level: 7.2
> CLI interpreter: PHP 7.2.4
2、PHPStorm: Run > Edit Configurations.. > + > PHP Script, 添加 php 文件。
或直接在要调试的 php 文件中,`control+alt+d` > xxx.php(PHP Script)二、配置 Laravel 的 Debug
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_port=9001 ;xdebug的端口,默认为9000,我习惯用9001
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_enable=1
xdebug.idekey=PHPSTORM三、配置 PHP Unit
Last updated