HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Debug CMS UI

Describes how to debug the Optimizely Content Management System (CMS) user interface.

You can run your site with uncompressed JavaScript in edit view to debug the Optimizely Content Management System (CMS) user interface. To do this, you need to enable debug mode for client resources by using EPiServer.Framework.Web.Resources.ClientResourceOptions class add setting the Debug property to true.

Example configuration:

if (_webHostingEnvironment.IsDevelopment()) {
  services.Configure < ClientResourceOptions > (uiOptions => {
    uiOptions.Debug = true;
  });
}

The CMS UI NuGet packages contain the JavaScript files required to run the user interface compressed into a zip file. The system then reads the contents of the zip file at run time. At initialization, if the client resources debug flag is set to true, the system first looks for a debug version of the JavaScript zip file and, if it exists, loads that instead.

EPiServer.CMS.UI.Sources

The EPiServer.CMS.UI.Sources NuGet package contains all original user interface source files and uncompressed Dojo and Dijit.

The source package is built as part of every release and ties into the continuous release cycle. You can install it like any other NuGet package from nuget.optimizely.com.

Install-Package EPiServer.CMS.UI.Sources

You can use this package if you need to manipulate source files and create a customized Dojo build. It comes together with Dojo build tools.

📘

Note

To debug the CMS edit view, you do not need this package. The change described above is sufficient.