I am having trouble making real use of Devel's debugging functions kint()
and dpm()
in my modules and twig templates. They work fine for primitive variables, flat arrays and such, but if I want to inspect into some object like an EntityRerefenceFieldItemList
they either cause the site to crash (white page) or generate so much data such that the scripts for expanding the list no longer work.
How do I circumvent these problems?