PhpStorm调试 (Xdebug版)

102 阅读1分钟

环境

PHP版本:8.0.2

PHP框架:ThinkPHP5

Xdebug: 3.3.2

PHPstudy:8.1.1.3

PHPStorm:2024.1.1

配置

PHPstudy自动下载了Xdebug,只需要配置就行。

php.ini


# 在最后一行加入

[xdebug]
zend_extension="D:\phpstudy_pro\Extensions\php\php8.0.2nts\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9002
xdebug.idekey="PHPSTORM"

image.png

PHPStorm

image.png

image.png

image.png