phpdbg(1)

πŸ“¦ version 8.3.6, in ubuntu noble

πŸ’… 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:

  • -c path|file β€” look for the php.ini file in the directory path, or just use the specified file directly. choose your own adventure ✨
  • -d foo[=bar] β€” define INI entry foo with value bar. set it, forget it, live your truth πŸ’…
  • -n β€” no php.ini file will be used. at all. none. zero. bye πŸ‘‹
  • -z file β€” 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 😭
  • -i path|file β€” override the .phpgdbinit location (this implies -I btw, 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 through eval(). yes bestie, even the eval'd code gets stepped through, we don't play favorites
  • -s delimiter β€” read code to execute from stdin with an optional delimiter. piping code in like a hacker in a movie 🧚
  • -S sapi_name β€” override the SAPI name. identity crisis, but make it intentional 🌈
  • -p opcode β€” 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 -rr will cause phpdbg to 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 Β© 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