Notifications
Announcements
No record found.
Is there any way to see what attributes an element contains/ are we able to debug liquid objects?
*This post is locked for comments
If you're using liquid on a web template or content snippet, you can insert the attribute you'd like to see into the DOM.
<p>{{object.attribute}}</p>
There is no real way (such as a debugger) to debug liquid code.
You can use the regular approach of using console.log or alerts.
For example:
{% if myFieldValue == "Test" %}
console.log("Field Value is Test")
{% endif %}
Hope this helps.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2