How to get __debugInfo to work with XDebug?

2019-04-29 16:47发布

问题:

It seems __debugInfo does not work when xdebug overwrites var_dump.

Is there anyway to make this work?

I am using PHP 5.6.0 and XDebug 2.2.5

回答1:

This is now fixed in Xdebug - soon to be released: https://github.com/xdebug/xdebug/commit/14159486d8d77732b5ae193ca9431bae80c94074