Add method isDebugMode
Change to public visibility