phpdbg(1)
π phpdbg β the interactive PHP debugger, bestie edition π
okay so real talk: this is phpdbg(1), from the Scripting Language manual section, and it's genuinely one of the most underrated little glow-ups in the PHP ecosystem. no cap.
β¨ NAME β¨
phpdbg β the interactive PHP debugger ππ
β¨ SYNOPSIS β¨
phpdbg [options] [file] [args...]
β¨ DESCRIPTION β¨
phpdbg is a lightweight, powerful, easy to use debugging platform for PHP. that's it, that's the summary, and honestly? it ate. π
β¨
it's giving "I will find your bug and I will do it with style." no cap, this thing is small enough to not get in your way but strong enough to actually be useful, which is a combination that lowkey shouldn't be possible but here we are.
β¨ OPTIONS β¨
-cpath|fileβ tell phpdbg where to look for yourphp.ini. either give it apath(a directory to search in) or point it straight at a specificfileπ-dfoo[=bar] β define the INI entryfoo, and if you want it to have a value, set it tobar. the=barpart is optional, so-d foois valid too π«Ά-nβ nope, nophp.inifile for us today. none. zero. we're going in bare-faced π-zfileβ load a Zend extension fromfileβ-qβ quiet mode, bestie. no banner printed on startup. we're skipping the little intro and getting straight to the plot π΅-vβ turn on oplog output π-bβ disables color on the console. yes this is the "my terminal theme is a crime scene" option and yes we respect it π-ipath|fileβ override where.phpgdbinitlives. heads up: this one implies-I, so it comes with consequences β¨-Iβ ignore.phpdbginitentirely (that's the default init file, btw) π-rβ jump straight to run. no detours, no small talk, we're going πβοΈπ¨-eβ generate extended information for the debugger/profiler π₯-Eβ enable step througheval()π§-sdelimiterβ read the code you want to execute from stdin, with an optionaldelimiterto keep it tidy π-Ssapi_nameβ override the SAPI name π-popcodeβ output opcodes and then quit. like, immediately. bye π-hβ print the help overview, the classic "what does anything do" move πΈ-Vβ version number, for when you need receipts πargs...β arguments passed straight to the script. β οΈ but listen: use--before your args when the first argument starts with-, or when the script is being read from stdin. this is the "please stop eating my flags" clause, and it is not optional π¨
β¨ NOTES β¨
passing-rrwill causephpdbgto quit after execution, instead of returning you to the console. so you get one run and then it's gone, like a situationship π₯²
β¨ FILES β¨
php.iniβ the standard configuration file, the blueprint, the origin story π.phpdbginitβ the init file β¨
β¨ SEE ALSO β¨
the online manual lives at http://php.net/manual/book.phpdbg.php β go read it, iykyk ππ
β¨ BUGS β¨
you can browse the list of known bugs, or report any brand new bug you found, at https://github.com/php/php-src/issues π
(if you find a bug, telling the maintainers is the main character move. periodt. π)
β¨ AUTHORS β¨
written by Felipe Pena, Joe Watkins and Bob Weinand, and formatted by OndΕej SurΓ½ for the Debian project. iconic lineup, honestly π
a list of active developers can be found at http://www.php.net/credits.php β
and last but not least, PHP was developed with the help of a huge amount of contributors all around the world. that's not a footnote, that's the whole vibe. global effort, global slay ππ
β¨ VERSION INFORMATION β¨
this manpage describes phpdbg, for PHP version 8.2.35 π
β¨ COPYRIGHT β¨
Copyright Β© The PHP Group
this source file is subject to version 3.01 of the PHP license, that is bundled with this package in the file LICENSE, and is available through the world-wide-web at the following url: https://www.php.net/license/3_01.txt
if you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately. we got you π«Ά
okay that's the whole page, bestie! this one was shipped by The PHP Group in 2024 and it's documenting phpdbg(1) for the Scripting Language crowd. go debug something and make it look effortless πβ¨ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: php8.2-phpdbg 8.2.35-1~deb12u1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms