sokil/php-debug-utils

Debug utils

Maintainers

Package info

github.com/sokil/php-debug-utils

Language:Shell

pkg:composer/sokil/php-debug-utils

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

dev-master 2019-11-12 21:20 UTC

This package is auto-updated.

Last update: 2026-03-13 11:24:51 UTC


README

Remote debugging

Mey be usefull when code executed on remote server, and PHP runtime needs to connect to IDE on local machine, but remote server can not connect to local IDE directly.

First forward remote port to local port, accessible by IDE:

ssh -fN some-ssh-host -R 9000:127.0.0.1:9000

Then run script:

./debugRemote /path/to/some.php arg1 arg2

Building flame graph

More info about flame graphs may be found in http://www.brendangregg.com/flamegraphs.html.

Run scipt and pass path target to SVG file:

./flameGraph /path/to/flamegrapg.svf /path/to/some.php arg1 arg2

Flamegrapg will be stored at /path/to/flamegrapg.svf