Make debug status boolean

App part of https://github.com/cakephp/cakephp/pull/3043