Hi all, I am currently developing a custom module using workflow comibing local development tools and the Design Manager. I am using `scope_css` for the first time and would like to debug my code so I can see the output of the field & style variables being used there. This HubSpot documentation page suggests that I should have a ‘Show Output’ button, but I see nothing of the sort in my Design Manager.
I have also seen `|pprint` suggested but frankly, I have no clue where people are seeing the output of this function. I don’t see it in the dev console or anywhere in the Component Preview.
What gives? How do people debug during custom module development?
@bearons - the pprint filter renders the debug messages in the context of the displayed page under development. It’s simple and uper useful to validate any level of HubL logic or variable values.
Also just to note that the “Show Output” button is for templates not for modules but you can use the Preview button to quickly have a look at the output of your module. It can be a bit limited as it’s only going to show the styling that’s included within the module not from your theme. If memory serves javascript might be somewhat limited in the preview too.