Saturday, January 04, 2014

Quick tip: debugging SharePoint 2013 search display templates

The easiest way to debug your SharePoint 2013 search display templates is to just to put in a debugger; statement in the first Javascript part of your search display template.
First you will however need to uncheck the  “Disable script debugging (Internet Explorer) option in your browser (Go to Internet Options>Advanced>Settings – Browsing category). This will allow you to break in Visual Studio and view all the necessary variables which will help you to debug your display templates.


No comments:

Post a Comment