mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
The PHP Interpreter
.gitignore | ||
config.m4 | ||
Makefile.frag | ||
phpdbg_bp.c | ||
phpdbg_bp.h | ||
phpdbg_help.c | ||
phpdbg_help.h | ||
phpdbg_list.c | ||
phpdbg_list.h | ||
phpdbg_opcode.c | ||
phpdbg_opcode.h | ||
phpdbg_prompt.c | ||
phpdbg_prompt.h | ||
phpdbg_utils.c | ||
phpdbg_utils.h | ||
phpdbg.c | ||
phpdbg.h | ||
phpdbg.png | ||
README.md | ||
test.php |
The interactive PHP debugger
Implemented as a SAPI module, phpdbg can excerpt complete control over the environment without impacting the functionality or performance of your code.
phpdbg aims to be a lightweight, easy to use debugging platform for PHP5.5+
Features
- step through debugging
- break at method/function entry, file:line or address
- showing debug backtraces
- easy manipulation of the environment with built-in eval()
- userland API
- sapi agnositicism, easy integration
Planned
- mocking server environments/requests
- improve everything
Installation
To install phpdbg, you must compile the source against your PHP installation sources, and enable the SAPI with the configure command.
cd /usr/src/php-src/sapi
git clone https://github.com/krakjoe/phpdbg
cd ../
./buildconf --force
./config.nice
make -j8
make install-phpdbg
Command Line Options
The following switches are implemented (just like cli SAPI):
- -n ignore php ini
- -c search for php ini in path
- -z load zend extension
- -d define php ini entry