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

[eluser]mstdmstd[/eluser]
Is it possible in CI 2.2 to show tracing of my vars like calling

Code:
$this->output->enable_profiler(TRUE);
So that my tracing would be shown in this or in similar panel ?

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

Code:
Appfuncs::deb($pricing_id, '$pricing_id::');
Appfuncs::deb($is_insert, '$is_insert::');
And in footer of page to see output of these vars like
http://s011.radikal.ru/i317/1408/8d/2b4000a7b3c3.png

Thanks!
#2

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

[eluser]mstdmstd[/eluser]
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 :
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
        $this->load->library('console');
        $this->output->enable_profiler(true);
        Console::log('Hey, this is really cool');
        $this->load->view('welcome_message');

I am not sure is it corect to writle
Code:
$this->load->spark('Debug-Toolbar/1.0.7');
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.
#4

[eluser]CroNiX[/eluser]
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.

http://getsparks.org/install




Theme © iAndrew 2016 - Forum software by © MyBB