我在php.ini中配置了Xdebug,我在phpinfo()
中看到了它。
我在解释器中看到Xdebug版本我在Windows 10中有XAMPP v3.2.2。
我附上一些照片来解释我的情况。
请帮助我如何让PhpStorm在断点处停止?
我的php.ini
[XDebug的]
zend_extension="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_autostart=1
xdebug.profiler_enable=1
;xdebug.remote_connect_back=1
口译
语言&框架和GT; PHP>调试
答案 0 :(得分:0)
尝试将xdebug.remote_host="localhost:8081"
更改为xdebug.remote_host=localhost
。您已在xdebug.remote_port
中指定了端口,因此主机设置必须仅包含主机名。
同时检查PHPStorm是否真正保留了端口9000。可能与PHP FPM存在冲突,因为它默认使用相同的端口。