Function
runInDebug (func) public
Module: | @ember/application |
---|
Defined in packages/ember-debug/lib/index.js:183
Available since v1.5.0
import { runInDebug } from '@ember/debug';
- func
- Function
- The function to be executed.
Run a function meant for debugging.
- 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.
import Component from '@ember/component'; import { runInDebug } from '@ember/debug'; runInDebug(() => { Component.reopen({ didInsertElement() { console.log("I'm happy"); } }); });
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fdebug/runInDebug