CakePHPのデバッグモード

app/config/core.php内のDEBUGを2に変更すると、ブラウザでのアクセスの際、テーブルへのアクセス状況などが格段にわかりやすくなる。

/**
* Set debug level here:
* - 0: production
* - 1: development
* - 2: full debug with sql
* - 3: full debug with sql and dump of the current object
*
* In production, the "flash messages" redirect after a time interval.
* With the other debug levels you get to click the "flash message" to continue.
*
*/
define('DEBUG', 2);