Enable overloaded var_dump in xdebug.mode=debug
P粉939473759
P粉939473759 2024-03-29 12:47:47
0
2
537

The new Xdebug seems to disable the overloaded var_dump() function in debug mode. I like to use both var_dump() and breakpoint debugging, but I'm forced to use xdebug.mode=develop for var_dump and xdebug.mode=debug for breakpoints Swap back and forth between points.

Is there any way to enable overloaded var_dump() while staying at xdebug.mode=debug?

It's not the end of the world, but it's a little annoying having to swap back and forth when I need a clean var_dump() for a quick analysis.

P粉939473759
P粉939473759

reply all(2)
P粉530519234

You can determine the depth level to dump

;try put it 10 or 13 and see the result
xdebug.var_display_max_depth = 3

check

https://xdebug.org/docs/all_settings#var_display_max_depth

Hope it helps you

P粉195200437

Of course, just list both modes via commas:

xdebug.mode=debug,develop

Fromhttps://xdebug.org/docs/all_settings#mode

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template