gdv/livedebug

PHP Library to use with livedebug docker image

Installs: 215

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/gdv/livedebug

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

This package is auto-updated.

Last update: 2025-09-18 12:45:33 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);
...