Welcome Guest, Not a member yet? Register   Sign In
Show what queries are running...
#1

[eluser]LifeSteala[/eluser]
Code igniter has this line of code which helps you debug. It outputs all the queries running. Unfortunately I've forgotten this line of code. Does anyone have this?

Thanks

EDIT: Found it.

Code:
$this->output->enable_profiler(TRUE);
#2

[eluser]Derek Allard[/eluser]
Just for posterity, one can also run
Code:
$this->db->last_query();
#3

[eluser]LifeSteala[/eluser]
Oh cool! Did not know that.

Thanks Smile
#4

[eluser]Derek Allard[/eluser]
Yeah, that's one of my "go to" lines. I use jumpcut (Mac clipboard utility) and that line always seems to be in my top 10 recently used copy/pastes Smile




Theme © iAndrew 2016 - Forum software by © MyBB