PHP code example of ecxod / debug

1. Go to this page and download the library: Download ecxod/debug library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ecxod / debug example snippets


php8.2 composer.phar 

$_ENV['MYIP']=...       # ex. 192.168.178.10,192.168.178.20, optional ..
$_ENV['SCSSPATH']=...   # ex. /scss
$_ENV['VENDOR']=...     # ex. /vendor
$_ENV['AUTOLOAD']=...   # ex. /vendor/autoload.php
$_ENV['WORKSPACE']=...  # ex. /workspace
$_ENV['DOCROOT']=...    # ex. /workspace/public
$_ENV["STATIC"]=...     # ex. /workspace/public/static
$_ENV["CSSPATH"]=...    # ex. /workspace/public/static/css
$_ENV["JSPATH"]=...     # ex. /workspace/public/static/js

<!DOCTYPE html>
<html lang="de_DE">
<head>
<link rel="stylesheet" type="text/css" href="https://ecxample.com/static/css/debug.min.css" as="style">
</head>



/**
D E B U G
*/
if( isMe() ){
  $oDEBUG = new \Ecxod\Debug\D;
  echo $oDEBUG->debug($_SESSION['lang'], "UTF-8");
  unset($oDEBUG);
}
sh

scss/

public/
  ├─static/
  │   ├─css/
  │   ├─images/
  │   ├─js/
  │ 
  └── index.php

vendor/
  ├─ecxod/
  │   ├─debug/
  │       ├── compiler.php
  │       ├── composer.json
  │       ├── composer.phar
  │       ├── LICENSE
  │       ├── README.md
  │       ├── scss
          │   └── debug.scss
          └── src
               └── debug
                   └── D.php