Delivering code in production with debug features activated is security-sensitive. It has led in the past to the following vulnerabilities:
An application's debug features enable developers to find bugs more easily and thus facilitate also the work of attackers. It often gives access to detailed information on both the system running the application and users.
There is a risk if you answered yes to any of those questions.
Do not enable debug features on production servers.
CakePHP 1.x, 2.x:
Configure::write('debug', 1); // Sensitive: development mode
or
Configure::write('debug', 2); // Sensitive: development mode
or
Configure::write('debug', 3); // Sensitive: development mode
CakePHP 3.0:
use Cake\Core\Configure;
Configure::config('debug', true); // Sensitive: development mode
CakePHP 1.2:
Configure::write('debug', 0); // Compliant; this is the production mode
CakePHP 3.0:
use Cake\Core\Configure;
Configure::config('debug', false); // Compliant: "0" or "false" for CakePHP 3.x is suitable (production mode) to not leak sensitive data on the logs.