added engine.debug.init() which is set in editor debug.js files