php.ini
[xdebug]
zend_extension=xdebug.so
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
#开启远程调试
xdebug.remote_enable = On
#远程主机
xdebug.remote_host = localhost
#主机端口
xdebug.remote_port = 9003
#开启自动跟踪
xdebug.auto_trace=On
#开启远程调试自动启动
xdebug.remote_autostart = On
#收集变量
xdebug.collect_vars = On
#收集返回值
xdebug.collect_return=On
#收集参数
xdebug.collect_paras=On
#临时跟踪信息输出#显示局部变量
xdebug.show_local_vars=On
xdebug.profiler_enable= On
xdebug.trace_enable_trigger = onphpstorm里
启动调试,phpstorm就是无法响应
同样的配置,本地服务器就可以调试vscode下的配置,本地也无法启动调试,端口换过9000,9001,9002都不行
防火墙已经关闭远程使用的服务器为腾讯云,公网ip可以访问
安全规则如下
web上的phpinfo信息