phpdbg(1)

πŸ“¦
version 8.5.9 Β· 2 versions
, in ubuntu stonking

πŸ’… phpdbg β€” the interactive PHP debugger

okay bestie, so this is the phpdbg(1) man page from the Scripting Language section of the manual, and it's literally your girl for debugging PHP. sit down, hydrate, let's go 🫢


✨ NAME ✨

phpdbg β€” the interactive PHP debugger. yeah. that's her. she's an icon, she's the moment πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

that's it. that's the whole vibe. options, a file, some args, slay ✨


🌸 DESCRIPTION 🌸

phpdbg is a lightweight, powerful, easy to use debugging platform for PHP. no cap, it's giving "why was I using anything else" energy. πŸŽ€


πŸ’œ OPTIONS πŸ’œ

one bullet per flag, no skipping, we don't do that here. every single one is accounted for πŸ’―

  • -c path|file β€” look for the php.ini file in the directory path, or just use the file you specified. dealer's choice πŸ“
  • -d foo[=bar] β€” define the INI entry foo with the value bar. set it, bestie ✨
  • -n β€” no php.ini file will be used at all. raw. unbothered. πŸ¦‹
  • -z file β€” load a Zend extension from file. plug it in πŸ”Œ
  • -q β€” do not print the banner on startup. quiet mode, mysterious mode πŸ’…
  • -v β€” enable oplog output. receipts on πŸ“
  • -b β€” disables use of color on the console. (tragic, I know. sometimes you gotta 😭)
  • -i path|file β€” override the .phpgdbinit location. this implies -I. package deal πŸŽ€
  • -I β€” ignore .phpdbginit (that's the default init file). moving on, we don't know her πŸ™ˆ
  • -r β€” jump straight to run. no small talk, just go πŸƒβ€β™€οΈ
  • -e β€” generate extended information for debugger/profiler. extra. detail. obsessed ✨
  • -E β€” enable step through eval(). yes, into the eval, we go there 🧚
  • -s delimiter β€” read code to execute from stdin, with an optional delimiter. piping, but make it cute 🌈
  • -S sapi_name β€” override the SAPI name. identity crisis? no, a glow up πŸ‘‘
  • -p opcode β€” output opcodes and quit. show me the tea then leave β˜•
  • -h β€” print the help overview. when in doubt, -h πŸ’–
  • -V β€” version number. know your icon ⭐
  • args... β€” arguments passed to the script. use -- args when the first argument starts with - or when the script is read from stdin. important detail, don't skip it bestie πŸ’€

πŸ“ NOTES πŸ“

passing -rr will cause phpdbg to quit after execution, rather than returning to the console.

so like, -rr = one and done. she runs it, she leaves. no encore. πŸŽ€β¬‡οΈ


πŸŽ€ FILES πŸŽ€

  • php.ini β€” the standard configuration file. the classic.
  • .phpdbginit β€” the init file. her personal diary, basically πŸ“”

πŸ”₯ 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. found a bug? snitch. respectfully. 🫢


πŸ‘‘ AUTHORS πŸ‘‘

written by Felipe Pena, Joe Watkins and Bob Weinand, formatted by OndΕ™ej SurΓ½ for the Debian project. legends, every 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. global girlies, we love to see it πŸŒπŸ’–


⭐ VERSION INFORMATION ⭐

this manpage describes phpdbg, for PHP version 8.5.9. yes, that specific. no vibes-based guessing here πŸ“Œ


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. (fr fr, just email them, they're nice πŸ“¬)


and that's the whole page, bestie!! this one came from The PHP Group, dated 2024, and it's literally the phpdbg(1) page we just read together. go debug something iconic πŸ’…βœ¨

πŸ“¦ where this page comes from