How do you debug Netlify CMS custom previews

Hello,

I can’t seem to figure out how to debug the preview templates (when registerPreviewTemplate runs). I am using the Netlify/Gatsby starter project, and would like to inspect the data being passed into the BlogPostPreview.js (found in src/cms/preview-templates)

Any suggestions would be appreciated, Thanks!

Hi @juliuspopa and welcome to the community!

Custom preview template code runs in the browser.
You could add console log message or debugger breakpoints here for example: