__debuginfo() must return an array

Thanks for the suggestion regarding debugging hooks.
The fact that plugins such as this one exist makes it obvious that hooks are tricky in regards to debugging.

But what about this?

Is there anybody out there using xdebug for kirby development?