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
- Debug Mode
- Debug Using Chrome DevTools
- Security for Lightning Components: Limitations for Debugging with LWS Enabled
- Security for Lightning Components: Workflow to Test Your Components with Lightning Web Security