Welcome Guest, Not a member yet? Register   Sign In
Visubug - The Codeigniter visual bug output.
#1

[eluser]luke holder[/eluser]
This library Outputs colored and structured tabular variable information.


Code:
class Checkout extends CI_Controller {

        function __construct()
        {
            parent::__construct();

            $this->load->library('visubug');
        }

        function index()
        {

            $test = array(
                "first"=>"1",
                "second",
                "third"=>array(
                    "inner third 1",
                    "inner third 2"=>"yeah"),
                "fourth");

            $data['debug'] = $this->visubug->parse($test);

            $this->load->view('checkout',$data);

        }
    }

would turn into this:

http://bit.ly/io49h3

Variable types supported are: Arrays, Classes/Objects, Database and XML Resources.

Ability to force certain types of output. Example: You can force an object variable to be outputted as an array type variable.

Stylesheet can be easily edited.

Table cells can be expanded and collapsed.


Project & Usage Instructions downloadable at:

https://github.com/lukeholder/codeigniter-visubug

Thanks!

Luke Holder
#2

[eluser]n0xie[/eluser]
Very nice. You could also take a look at Xdebug, which does something similar but without need for extra code and correct types. (obviously Xdebug needs to be installed, so this might be handy for servers where Xdebug isn't installed.

Code:
function index()
    {
        $test = array(
                "first"=> 1,
                "second",
                "third"=>array(
                    "inner third 1",
                    "inner third 2"=>"yeah"),
                "fourth" => TRUE);

        var_dump($test);
    }
#3

[eluser]Spir[/eluser]
Also this :
http://ellislab.com/forums/viewthread/187056/




Theme © iAndrew 2016 - Forum software by © MyBB