Newer Version Available
Debugging JavaScript Code
Enable debug mode to make it easier to debug JavaScript code in your Lightning components.
By default, the Lightning Component framework runs in PROD mode. This mode is optimized for performance. It uses the Google Closure Compiler to optimize and minimize the size of the JavaScript code. The method name and code are heavily obfuscated.
When you enable debug mode, the framework runs in PRODDEBUG mode by default. It doesn't use Google Closure Compiler so the JavaScript code isn't minimized and is easier to read and debug.
To enable debug mode:
- From Setup, click .
- Select the Enable Debug Mode checkbox.
- Click Save.