bem-core icon indicating copy to clipboard operation
bem-core copied to clipboard

i-bem: Think about debug module

Open narqo opened this issue 11 years ago • 3 comments

narqo avatar Jan 29 '15 13:01 narqo

Provide a way to put some additional debug code in js tech in none production environment. For cleaner output in production output such code should absent. Thought, it is not just about i-bem, this issue seems good place to hold this suggestion.

Guria avatar Jan 30 '15 19:01 Guria

@Guria something like?

#ifdef DEBUG
console.warn('OMG FOO BAR')
#endif

qfox avatar Jan 30 '15 19:01 qfox

Also auto console.log() of bem events, changing mod values, calling *SetMod handlers would be usefull.

Guria avatar Feb 05 '15 07:02 Guria