Welcome Guest, Not a member yet? Register   Sign In
Debugging of Codeigniter vars

Is it possible in CI 2.2 to show tracing of my vars like calling

So that my tracing would be shown in this or in similar panel ?

As "similar panel " I mean to write something like this :

Appfuncs::deb($pricing_id, '$pricing_id::');
Appfuncs::deb($is_insert, '$is_insert::');
And in footer of page to see output of these vars like


Well yes, but it's not built in. But you could sure add tracing and dump all scoped vars/classes by extending the profiler.

I searched in net I found several
I tried to install from here http://getsparks.org/packages/Debug-Tool.../HEAD/show
and I get an
In code :
$this->load->spark('Debug-Toolbar/1.0.7'); // error : ( ! ) Fatal error: Call to undefined method CI_Loader::spark() in /controllers/admin/hostel.php on line 37
        Console::log('Hey, this is really cool');

I am not sure is it corect to writle
as I downloaded latest 1.0.7 version. Is it compatible with CI 2.2.0 ?

Also I am not sure but I copied 2 files from Debug-Toolbar-1.0.7.zip/libraries into /application/libraries
and 1 file from /Debug-Toolbar-1.0.7.zip/views into /application/views.
is it correct ?

Do you know any profile I need compatible with CI 2.2.0 ? Please, share.

Did you set up spark? It's a package manager that isn't included with CI, it includes the load:Confusedpark() method. Once you have the spark package manager installed you should be able to load a spark. I have no idea if any of those packages work with which version of CI. I haven't used them.


Theme © iAndrew 2016 - Forum software by © MyBB