Hey Derek,
In the database config debug is set to TRUE.
I’m not sure what the profiler is, and other than a mention in the change log for the installer I don’t see it mentioned in the docs at all.
I’ve not done anything weird install wise. It’s just a normal install of EE 2 no unusual tweaks or anything like that. And this is an attempt to debug an Active Record query on the back end inside of a module with a CP Interface.
JAmie
The Profiler is a feature of CodeIgniter. It replaced the Display SQL Queries preference in Output and Debugging, though the user guide seems to still refer to it by the older name (I’ll let the dev team know).
To save memory, queries are not saved unless the system knows that they are going to be displayed (i.e. the profiler is enabled). So if you enable the profiler, you should see not only all of the queries for the page request, but also the queries will be saved for use by last_query(). Alternatively, you can immediately set $EE->db->save_queries to TRUE prior to the execution and call to last_query().
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.