[SalesForce] What does Lightning Debug Mode do exactly

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?

Best Answer

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