首页 > 解决方案 > Xdebug 忽略浏览器插件并总是触发

问题描述

当我在 PhpStorm 中打开侦听器并设置断点时,Xdebug 工作得很好,但我正在尝试使用浏览器插件,您可以通过它来切换似乎不起作用的 xdebug。即使未设置浏览器 cookie PHPSTORM,也会触发 Xdebug。

设置:

Laradock on mac
PhpStorm
PHP 7.1.16
Xdebug 2.6.0

我这样配置xdebug:

xdebug.remote_enable=1
xdebug.remote_connect_back=off
xdebug.remote_host=10.254.254.254
xdebug.remote_port=9005
xdebug.remote_autostart=off
xdebug.idekey=PHPSTORM
xdebug.max_nesting_level=1500
xdebug.cli_color=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1

标签: phpstormxdebuglaradock

解决方案


推荐阅读