Version 6 pre-stable
This version of Silverstripe CMS has not yet been given a stable release. See the release roadmap for more information. Go to documentation for the most recent stable version.

Debugging templates

Source code comments

If there is a problem with the rendered html your page is outputting you may need to track down a template or two. The template engine can help you along by displaying source code comments indicating which template is responsible for rendering each block of html on your page.

---
Only:
  environment: 'dev'
---
SilverStripe\View\SSViewer:
  source_file_comments: true