- 基本环境:
MacOS m1
PhpStorm 2024.1
PHP7.4.33
Xdebug v3.1.6
1、php.ini 配置
[xdebug]
zend_extension = "/opt/homebrew/Cellar/php@7.4/7.4.33_6/pecl/20190902/xdebug.so"
xdebug.idekey = "PHPSTORM"
xdebug.client_host = localhost
xdebug.client_port = 9003
xdebug.mode=debug,develop
xdebug.start_with_request = yes
xdebug.output_dir = /tmp
xdebug.log=/Users/lws/xdebug.log
xdebug.log_level=7
2、phpstrorm设置
3、添加调试配置
(这里的域名是在hosts中配置的站点:127.0.0.1 publish.test )