如何让__debugInfo与XDebug一起工作


How to get __debugInfo to work with XDebug?

当xdebug覆盖var_dump时,__debugInfo似乎不起作用。

有没有办法让它发挥作用?

我使用的是PHP 5.6.0和XDebug 2.2.5

这在Xdebug中已经修复,即将发布:https://github.com/xdebug/xdebug/commit/14159486d8d77732b5ae193ca9431bae80c94074