Drupal - Can kint be used to debug templates?

The object/array is too big for your server resources to handle the default kint settings.

Edit modules/devel/kint/kint/config.default.php and set $_kintSettings['maxLevels'] to a lower number to reduce recursion and the memory needed for dumping variables. The default is 7, I have mine set to 4. If 4 still doesn't work for you, keep lowering the number.


For debug big array, i use first :

{{kint($array|keys)}}

after i got key i can kint the array with the key. With this method i don’t have memory error.