array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'intro.phpdbg.php', 1 => 'Introducción', ), 'up' => array ( 0 => 'book.phpdbg.php', 1 => 'phpdbg', ), 'prev' => array ( 0 => 'book.phpdbg.php', 1 => 'phpdbg', ), 'next' => array ( 0 => 'phpdbg.setup.php', 1 => 'Instalación/Configuración', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/phpdbg/book.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
Implemented as a SAPI module, phpdbg can exert complete control over the environment without impacting the functionality or performance of your code.
phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP. It offers the following features:
Option | Example Argument | Description |
---|---|---|
-c | -c/my/php.ini | Set php.ini file to load |
-d | -dmemory_limit=4G | Set a php.ini directive |
-n | Disable default php.ini | |
-q | Suppress welcome banner | |
-v | Enable oplog output | |
-b | Disable color | |
-i | -imy.init | Set .phpdbginit file |
-I | Ignore default .phpdbginit | |
-O | -Omy.oplog | Set oplog output file |
-r | Run execution context | |
-rr | Run execution context and quit after execution (not respecting breakpoints) | |
-e | Generate extended information for debugger/profiler | |
-E | Enable step through eval, careful! | |
-s | -s=, -s=foo | Read code to execute from stdin with an optional delimiter |
-S | -Scli | Override SAPI name, careful! |
|
||
-l | -l4000 | Setup remote console ports |
-a | -a192.168.0.3 | Setup remote console bind address |
-x | Enable xml output (instead of normal text output) | |
-p | -p, -p=func, -p* | Output opcodes and quit |
-h | Print the help overview | |
-V | Print version number | |
-- | -- arg1 arg2 | Use to delimit phpdbg arguments and php $argv; append any $argv argument after it |