7

When you enable UserPreferencesUserDebugModePref on a User, s/he will be running lightning components in debug mode.

The only difference I could perceive is that (more) console warns are printed. Per Docs the code should also be minified but I don't see this happening. I am confused.

What does Lightning Debug Mode exactly do?

0

1 Answer 1

8

The answer is: I misunderstood the docs plain and simply.

Optimization and minification are performed on framework code only. Custom component code is NOT minified or obfuscated.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_debug_mode.htm?search_text=debug (Above the yellow boxes)

Kudos @DanielBallinger

1
  • 1
    Also note that disabling debug mode supresses some common lightning component errors, sort of like production mode in a JavaScript application.
    – Raul
    Nov 13, 2018 at 18:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .