phpdbg(1)

πŸ’… phpdbg β€” the interactive PHP debugger (from the phpdbg(1) manual, Scripting Language section, bestie)

okay so real talk: phpdbg is a lightweight, powerful, and honestly just easy to use debugging platform for PHP. it's giving debugger but make it cozy. πŸ¦‹


✨ SYNOPSIS ✨

phpdbg [options] [file] [args...]

🌸 DESCRIPTION 🌸

phpdbg is a lightweight, powerful, easy to use debugging platform for PHP. that's the whole vibe. no cap. πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

every single flag, exactly as written, because we do not skip options in this house:

  • -c path|file β€” go look for the php.ini file inside the directory path, or straight up use the file you named πŸ’–
  • -d foo[=bar] β€” define the INI entry foo and give it the value bar ✨
  • -n β€” no php.ini file will be used. none. zero. bye πŸ‘‹
  • -z file β€” load the Zend extension file 🧚
  • -q β€” do not print the banner on startup (shy mode, we respect it) πŸ™ˆ
  • -v β€” enable oplog output πŸ“œ
  • -b β€” disables use of color on the console (sad, but accessibility icon behavior) 🌈
  • -i path|file β€” override where .phpgdbinit lives (path or file); this one implies -I ⚠️
  • -I β€” ignore .phpdbginit, the default init file 🚫
  • -r β€” jump straight to run. no small talk, just go πŸƒβ€β™€οΈ
  • -e β€” generate extended information for debugger/profiler πŸ”
  • -E β€” enable step through eval() πŸ‘€
  • -s delimiter β€” read code to execute from stdin, with an optional delimiter πŸ“₯
  • -S sapi_name β€” override the SAPI name 🏷️
  • -p opcode β€” output opcodes and quit πŸšͺ
  • -h β€” print the help overview πŸ†˜
  • -V β€” version number πŸ’«
  • args... β€” arguments passed to script. use -- args when the first argument starts with - or the script is read from stdin ⭐

πŸ“ NOTES πŸ“

bestie, listen: passing -rr will cause phpdbg to quit after execution, rather than returning to the console. so like… it's not staying for the afterparty. πŸ’€

πŸ“ FILES πŸ“

  • php.ini β€” the standard configuration file πŸ—‚οΈ
  • .phpdbginit β€” the init file πŸ—‚οΈ

πŸ‘€ SEE ALSO πŸ‘€

the online manual can be found at

https://www.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

πŸ‘‘ AUTHORS πŸ‘‘

written by Felipe Pena, Joe Watkins and Bob Weinand, formatted by OndΕ™ej SurΓ½ for the Debian project. icons, every single one of them πŸ’œ

a list of active developers can be found at

https://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 🌍🫢


πŸ’« VERSION INFORMATION πŸ’«

this manpage describes phpdbg, for PHP version 8.5.12. yes, we're current. slay.


Copyright Β© The PHP Group

this source file is subject to version 3.01 of the PHP license, which is bundled with this package in the file LICENSE, and is available through the world-wide-web at:

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. fr fr, they will literally mail it. πŸ“¬


and that's a wrap 🎬 β€” this page came to you from The PHP Group, dated 2024, describing phpdbg(1), section Scripting Language. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from