Replaced the API window.debug to window.Debug to unify the debug process.