PHPackages                             andreimosman/debugitto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. andreimosman/debugitto

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

andreimosman/debugitto
======================

Simple but effective remote debug tool.

v0.1.1(2y ago)14MITPHPPHP &gt;=7.0.0

Since Jun 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/andreimosman/debugitto)[ Packagist](https://packagist.org/packages/andreimosman/debugitto)[ RSS](/packages/andreimosman-debugitto/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

debugitto
=========

[](#debugitto)

This is a very simple way to debug PHP applications without generating output directly to the browser.

Installation
------------

[](#installation)

### Via composer:

[](#via-composer)

```
composer require andreimosman/debugitto

```

### Download

[](#download)

You can download at `https://github.com/andreimosman/debugitto` and just include `src/Debug.php`

Usage
-----

[](#usage)

### On your environment

[](#on-your-environment)

Once you included or required the main file via `vendor/autoload.php` or direct on your application, you can use it by:

```
// ...

use AndreiMosman\Debugitto\Debugitto;

Debugitto::enable('localhost', 9900);
Debugitto::d('This is my beautiful output');

// ...

```

Of course, you should listen on `localhost` port `9900` to make it work.

You can do it on your machine using netcat:

```
nc -kl 9900

```

### Inside a docker container

[](#inside-a-docker-container)

By default, the host is set to `host.docker.internal` (which refers, from the perspective of the container, to your docker server, outside the container) and the port to `9900`.

So, once you included manually or via composer autoload, you can add to your code:

```

use AndreiMosman\Debugitto\Debugitto;

Debugitto::enable();
Debugitto::d('Message sent from the container');

```

print\_r by default
-------------------

[](#print_r-by-default)

The code below:

```
