- 基本环境:
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

本文介绍了如何在MacOS m1系统中,利用PhpStorm 2024.1集成IDE,配合PHP7.4.33和Xdebug v3.1.6进行断点调试。主要涉及php.ini配置、PhpStorm的调试设置以及如何添加调试配置,确保在本地hosts定义的站点publish.test上实现高效调试。
订阅专栏 解锁全文
1281

被折叠的 条评论
为什么被折叠?



