phpdbg(1)
π phpdbg β the manual, but make it cute
okay so bestie, you've stumbled into phpdbg(1) from the Scripting Language section of the manual. buckle up, we're debugging PHP and we're gonna look iconic doing it π
β¨ NAME β¨
phpdbg β the interactive PHP debugger. that's it, that's the name, and she serves π
πΈ SYNOPSIS πΈ
phpdbg [options] [file] [args...]
π¦ DESCRIPTION π¦
phpdbg is a lightweight, powerful, easy to use debugging platform for PHP. no cap. she's small, she's mighty, and she's literally here to help you figure out why your code is acting up. main character energy fr fr π₯
π OPTIONS π
so many flags, all of them valid, all of them yours to slay with:
-cpath|file β look for thephp.inifile in the directory path, or just use the specified file directly. choose your own adventure β¨-d foo[=bar]β define INI entryfoowith valuebar. set it, forget it, live your truth π-nβ nophp.inifile will be used. at all. none. zero. bye π-zfile β load Zend extension file. bringing extra friends to the party π«Ά-qβ do not print the banner on startup. quiet mode, mysterious mode, lowkey mode π€«-vβ enable oplog output. let's see those opcodes, periodt-bβ disables use of color on the console. sad for the vibes but great for your logs π-ipath|file β override the.phpgdbinitlocation (this implies-Ibtw, sneaky)-Iβ ignore.phpdbginit(the default init file). ghosted π«-rβ jump straight to run. no small talk, no warmup, straight to business-eβ generate extended information for debugger/profiler. the tea is detailed β-Eβ enable step througheval(). yes bestie, even the eval'd code gets stepped through, we don't play favorites-sdelimiter β read code to execute from stdin with an optional delimiter. piping code in like a hacker in a movie π§-Ssapi_name β override the SAPI name. identity crisis, but make it intentional π-popcode β output opcodes and quit. show me the opcodes and then leave π-hβ print the help overview. when in doubt, ask her-Vβ version number. who are you, really?args...β arguments passed to the script. use--args when the first argument starts with-or the script is read from stdin β
π NOTES π
passing-rrwill causephpdbgto quit after execution, rather than returning to the console. double r = double the exit, she's not coming back bestie π
π FILES π
php.iniβ the standard configuration file.phpdbginitβ the init file
π SEE ALSO π
the online manual can be found at http://php.net/manual/book.phpdbg.php β go read it, iykyk π¦
π BUGS π
you can view the list of known bugs or report any new bug you found at https://github.com/php/php-src/issues. not me sending a bug report at 3am... π
π AUTHORS π
written by Felipe Pena, Joe Watkins and Bob Weinand, formatted by OndΕej SurΓ½ for the Debian project. absolute legends, all of them π
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. the global group chat really came through π«Άπ
π« VERSION INFORMATION π«
this manpage describes phpdbg, for PHP version 8.3.6. yes, that specific one β¨
βοΈ 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. legal besties, we got you π
and that's the whole page bestie β brought to you by The PHP Group, dated 2024, signed off from the phpdbg(1) manual itself. stay debugging, stay iconic, mwah π
π
π¦ where this page comes from
- ubuntu noble: php8.3-phpdbg 8.3.6-0maysync1
- ubuntu noble: php8.3-phpdbg 8.3.6-0ubuntu0.24.04.11
- ubuntu noble: php8.3-phpdbg 8.3.6-0ubuntu0.24.04.13
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms