Tip for debugging page templates

You can drop into a PDB prompt when rendering a page template by inserting this in the template:

<?python locals().update(econtext); import pdb; pdb.set_trace() ?>

https://docs.plone.org/develop/debugging/pdb.html#debugging-page-templates

2 Likes

Plone Foundation Code of Conduct