Lightning Web Security Console is available from the Component Library navigation bar.
Here’s a direct link to the tool: https://developer.salesforce.com/docs/component-library/tools/lws-console
export statements or LWC decorators such as
Here’s an overview of the user interface of the Lightning Web Security Console tool.
- Code Console (1)
- Actions (2)
- Enable or disable LWS.
- Click Evaluate to run the code that’s displayed in the code console.
- Click Clear to clear the results, but not the code.
- Results of evaluation (3)
Displays the results of the LWS evaluation, including error messages returned from distortions.
- Linting Results (4)
Displays the LWS ESLint rules that were triggered during the evaluation.
If a distortion’s effect is to enable the code to run safely in the sandbox, the tool reports Success, and doesn’t indicate that a distortion was applied. If a distortion prevents the code from executing, the tool reports the error generated by the distortion.