---
schema_version: "1"
id: 800e3c3b39727f804ce33b752d78e7f58ffb4cbd55178f3048ed72a16552a53d
title: Locker Console Overview
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/lightning-components-security/guides/locker/locker-console.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-console.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2ef90b1e0a947061f72653a14824893a03be638a94c40e6a2bb6f4fe65418f86
products:
  - Security for Lightning Components
  - lwc
---
# Locker Console Overview

Use Locker Console to check your JavaScript code’s compatibility with Lightning Locker, and compare how it runs with Lightning Locker enabled and disabled.

Access [Locker Console](https://developer.salesforce.com/tools/locker-service-console) in the Tools area of the [DX Developer Center](https://developer.salesforce.com/developer-centers/developer-experience) and the [LWC Developer Center](https://developer.salesforce.com/developer-centers/lightning-web-components).

Locker Console enables you to quickly evaluate JavaScript code for issues or benchmark code, without requiring you to create an app to test your component. You can evaluate only JavaScript code in Locker Console. You can't evaluate a complete component bundle or component markup.

Here's an overview of the user interface of the Locker Console tool.

![Locker Console UI.](https://developer.salesforce.com/media/locker_console_guide.png '{"class": "image-framed", "title": "Lightning Locker Console"}')

- Code Console (1)
  - : Paste or type your JavaScript code here to evaluate or benchmark it.
- Toggles (2)
  - :
    - Enable or disable Locker.
    - Enable or disable Strict CSP.
- Actions (3)
  - :
    - Click **Evaluate** to run the code that’s displayed in the code console. See [Evaluate JavaScript Code Compatibility with Lightning Locker](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-console-evaluate.md).
    - Click **Benchmark** to run your code with and without Lightning Locker and view relative performance metrics. See [Benchmark Lightning Locker Effect on JavaScript Code](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-console-benchmark.md).
    - Click **Clear Results** to clear all the displayed results.

**See Also**

- [Lightning Locker API Viewer Overview](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-api-viewer.md)
- [Stricter CSP Restrictions](https://developer.salesforce.com/docs/platform/lightning-components-security/content-security-policy/content-security-policy-stricter.md)
- [Lightning Component Reference](https://developer.salesforce.com/docs/component-library/overview/components)
