Is there a way that one can cause CakePHP to dump its SQL log on demand? I\'d like to execute code up until a point in my controller and see what SQL has been run.
What worked finally for me and also compatible with 2.0 is to add in my layout (or in model)
element('sql_dump');?>
It is also depending on debug variable setted into Config/core.php