新的 Xdebug 似乎在调试模式下禁用了重载的 var_dump() 函数。我喜欢同时使用 var_dump() 和断点调试,但我被迫在 xdebug.mode=develop 的 var_dump 和 xdebug.mode=debug 的断点之间来回交换。
var_dump()
xdebug.mode=develop
xdebug.mode=debug
有什么方法可以在停留在 xdebug.mode=debug 的同时启用重载的 var_dump() 吗?
这不是世界末日,但当我需要一个干净的 var_dump() 进行快速分析时,不得不来回交换有点烦人。
您可以确定要转储的深度级别
;try put it 10 or 13 and see the result xdebug.var_display_max_depth = 3
检查一下
https://xdebug.org/docs/all_settings#var_display_max_depth
希望对你有帮助
当然,只需通过逗号列出两种模式即可:
xdebug.mode=debug,develop
来自https://xdebug.org/docs/all_settings#mode
您可以确定要转储的深度级别
检查一下
https://xdebug.org/docs/all_settings#var_display_max_depth
希望对你有帮助
当然,只需通过逗号列出两种模式即可:
来自https://xdebug.org/docs/all_settings#mode