Debug Components in an Org with LWS Enabled

To debug Lightning web components in an org where Lightning Web Security (LWS) is enabled, first enable debug mode for the best debugging experience.

Debugging techniques are generally the same for code that's sandboxed by LWS compared to code in orgs where LWS isn't enabled, but there are a few differences. See Debug with Lightning Web Security Enabled in Security for Lightning Components.

See Also