If we add following in twig file it throws memory exhaust error:

{{ dump(node) }}

I have tried to increase memory limit up to 6000M but still getting same error.

Comments

Ashutosh.tripathi created an issue. See original summary.

cilefen’s picture

Category: Bug report » Support request
Priority: Major » Normal
Issue tags: -Node debug in twig file

dump() uses var_dump() and node is a huge entity to dump(). This isn't a problem with Drupal as such. Try do dump() individual components of node. The attribute() function may be helpful.

joelpittet’s picture

Status: Active » Fixed

Also maybe try kint() that's in the devel module. It may help.

Haven't heard back since it was answered so I'm closing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.