Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

I would like to turn on a profiler in Craft CMS so I can see what DB queries are being run and how long they take.

Is this possible?

share|improve this question
add comment

1 Answer 1

up vote 9 down vote accepted

Yup! Just turn on devMode in your general config:

return array(
    'devMode' => true,
);

And then just open up a console (Firebug, Chrome, etc) and look in the profiling summary report.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.