Skip to content

MayCo-de/mayco-php-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

mayco-php-debugger

This is the official MayCo debugger for your PHP projects.

Get started

The folder of this debugger needs to be located at the root folder of your webserver.

Copy the following code to include the PHP debugger to your project:

  $rootpath = realpath($_SERVER["DOCUMENT_ROOT"]);
  require_once $rootpath.'/mayco-php-debugger/main.php';

Usage

Use it like:

  <?php
    $rootpath = realpath($_SERVER["DOCUMENT_ROOT"]);
    require_once $rootpath.'/your-project/main.php';
    Debugg::log("log");
    Debugg::warn("warnung");
    Debugg::error("error");

    Debugg::time("zeit");
    Debugg::trace();
    TIMER -> start();
    TIMER -> print();
    TIMER -> print();
    TIMER -> end();
  ?>

Output

debugger_screenshoot

Author

Marius May