centos

PHPStorm在CentOS上的调试功能如何使用

小樊
41
2025-12-27 06:47:22
栏目: 编程语言

在 CentOS 上使用 PhpStorm 调试的完整步骤

一 环境准备与安装

二 配置 Xdebug

参数 Xdebug 3.x Xdebug 2.x
启用扩展 zend_extension=/usr/lib64/php/modules/xdebug.so zend_extension=/usr/lib64/php/modules/xdebug.so
调试模式 xdebug.mode=debug xdebug.remote_enable=1
客户端主机 xdebug.client_host=127.0.0.1 xdebug.remote_host=127.0.0.1
调试端口 xdebug.client_port=9003 xdebug.remote_port=9003
触发方式 xdebug.start_with_request=yes xdebug.remote_autostart=1
IDE Key xdebug.idekey=PHPSTORM xdebug.idekey=PHPSTORM

三 配置 PhpStorm

四 开始调试

五 常见问题与排查

0
看了该问题的人还看了