How to enable debug on CakePHP

edit file app/config/core.php

Configure::write('debug',0);
0 = disable debug not show message error
1 = show error and wanning
2 =  same  1 but show full message