Ember has a static global method called runInDebug which can run a function meant for debugging.
Ember.runInDebug(() => {
// this code only runs in dev mode
});
In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js
build.