gdv/livedebug

PHP Library to use with livedebug docker image

v1.0.2 2024-01-18 08:41 UTC

This package is auto-updated.

Last update: 2025-02-18 11:28:11 UTC


README

Use in conjunction with guillaumedevreese/livedebug docker image. This allows you to debug PHP code without XDEBUG, print Kint output to external UI without stopping the process execution.

Installation

composer require --dev gdv/livedebug

Configuration

Available environment variables:

  • LIVEDEBUG_INTERNAL_PORT: Internal exposed port to listen on (default: 3030)
  • LIVEDEBUG_INTERNAL_HOST: Host to send data on (default: host.docker.internal)
  • LIVEDEBUG_INTERNAL_PROTOCOL: Protocol to use (default: http)

Usage

<?php
use Gdv\Livedebug;

...
LD::$depth_limit = 2; // default set to 3
LD::dump($var);
LD::dump($var1, $var2, $var3);
...