Simple PHP Debugger written in PHP

0.0.4 2022-04-10 03:24 UTC

This package is auto-updated.

Last update: 2024-04-10 07:45:46 UTC


README

Simple PHP Debugger written in PHP

Requirement

PHP: >= 8.0

Install

$ composer global require tzmfreedom/phdb

Usage

$ phdb
# phdb -p {port} -c {config}

Command

command (alias) description
next (n) step over
step (s) step into
finish (f) step out
continue (c) continue running script
break (b) set breakpoint
info break list breakpoints
delete delete breakpoint
local (l) show local variables
super_global (sg) show super globals
constants (cn) show constants
backtrace (bt) show backtrace
source show current source code

Examples

break on start calling function

break call {function_name}

ex) break call base64_encode
ex) break call App\Command\Hoge::handle

break on return calling function

break return {function_name}

break on exception

break exception {exception_name}

break at line no

break {file}:{line_no}

ex) break /path/to/file:12