1、安裝PHP環境
為了方便,使用的PhpStudy。
安裝路徑:D:\resources\phpstudy_pro\Extensions\php\php7.3.4nts
2、下載Xdebug
Xdebug: Downloads?
選擇對應的版本下載,本次使用的是7.3。
?3、配置Xdebug
在php.ini中添加Xdebug配置。
D:\resources\phpstudy_pro\Extensions\php\php7.3.4nts\php.ini
......
[xdebug]
zend_extension=D:\resources\phpstudy_pro\Extensions\php\php7.3.4nts\ext\php_xdebug-3.1.6-7.3-vc15-nts-x86_64.dll
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host=127.0.0.1
xdebug.idekey=IDEA
4、IDEA配置PHP
5、配置Xdebug
?
?
?
?運行:
?