---
title: Debug CMS UI
slug: cms-13/docs/debug-cms-ui
docTags: 
createdAt: 2026-07-30T20:22:10.689Z
---

Run your site with uncompressed JavaScript in edit view to debug the Optimizely Content Management System (CMS) user interface. Enable debug mode for client resources by using the `EPiServer.Framework.Web.Resources.ClientResourceOptions` class and setting the `Debug` property to `true`.

The following example shows the configuration:

```csharp
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 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 loads that instead if it exists.

### 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. Install it like any other NuGet package from [nuget.optimizely.com](http://nuget.optimizely.com/).

```powershell
Install-Package EPiServer.CMS.UI.Sources
```

Use this package to manipulate source files and create a customized Dojo build. It comes together with Dojo build tools.

:::hint{type="info"}
**Note**
To debug the CMS edit view, this package is not required. The configuration change described previously is sufficient.
:::
