php 版本信息
PHP 7.1.25 (cli) (built: Dec 7 2018 08:20:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
with Zend OPcache v7.1.25, Copyright (c) 1999-2018, by Zend Technologies
xdebug 无法断点。只到第一行就停止了。
xdebug 配置
xdebug.remote_enable=On
xdebug.remote_host= localhost
xdebug.remote_handler =dbgp
xdebug.remote_port=9001
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back = 1
phpstrom 配置
我直接调试一个单独的脚本的时候也是只到第一行。其他的断点没有触发。
没有勾选这个选项
1.关闭默认首行
2.检查配置和端口
3.确保 PHP 版本和 Xdebug 版本一致(推荐 7.2.*)