Newer Version Available
Enable Debug Mode for Lightning Components
Enable debug mode to make it easier to debug JavaScript code in your Lightning components.
There are two modes: production and debug. By default, the Lightning Component framework runs in production 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 names and code are heavily obfuscated.
When you enable debug mode, the framework doesn’t use Google Closure Compiler so the
JavaScript code isn’t minimized and is easier to read and debug. Debug mode also adds more
detailed output for some warnings and
errors.
To enable debug mode for your org:
- From Setup, enter Lightning Components in the Quick Find box, then select Lightning Components.
- Select the Enable Debug Mode checkbox.
-
Click Save.