|
2 years ago | |
---|---|---|
.. | ||
tests | 2 years ago | |
travis | 2 years ago | |
.gdbinit | 2 years ago | |
.gitignore | 2 years ago | |
.phpdbginit | 2 years ago | |
.travis.yml | 2 years ago | |
CREDITS | 2 years ago | |
Changelog.md | 2 years ago | |
Makefile.frag | 2 years ago | |
README.md | 2 years ago | |
config.m4 | 2 years ago | |
config.w32 | 2 years ago | |
phpdbg.1 | 2 years ago | |
phpdbg.c | 2 years ago | |
phpdbg.h | 2 years ago | |
phpdbg.init.d | 2 years ago | |
phpdbg_bp.c | 2 years ago | |
phpdbg_bp.h | 2 years ago | |
phpdbg_break.c | 2 years ago | |
phpdbg_break.h | 2 years ago | |
phpdbg_btree.c | 2 years ago | |
phpdbg_btree.h | 2 years ago | |
phpdbg_cmd.c | 2 years ago | |
phpdbg_cmd.h | 2 years ago | |
phpdbg_frame.c | 2 years ago | |
phpdbg_frame.h | 2 years ago | |
phpdbg_help.c | 2 years ago | |
phpdbg_help.h | 2 years ago | |
phpdbg_info.c | 2 years ago | |
phpdbg_info.h | 2 years ago | |
phpdbg_lexer.c | 2 years ago | |
phpdbg_lexer.h | 2 years ago | |
phpdbg_lexer.l | 2 years ago | |
phpdbg_list.c | 2 years ago | |
phpdbg_list.h | 2 years ago | |
phpdbg_opcode.c | 2 years ago | |
phpdbg_opcode.h | 2 years ago | |
phpdbg_parser.y | 2 years ago | |
phpdbg_print.c | 2 years ago | |
phpdbg_print.h | 2 years ago | |
phpdbg_prompt.c | 2 years ago | |
phpdbg_prompt.h | 2 years ago | |
phpdbg_set.c | 2 years ago | |
phpdbg_set.h | 2 years ago | |
phpdbg_utils.c | 2 years ago | |
phpdbg_utils.h | 2 years ago | |
phpdbg_watch.c | 2 years ago | |
phpdbg_watch.h | 2 years ago | |
phpdbg_win.c | 2 years ago | |
phpdbg_win.h | 2 years ago | |
test.php | 2 years ago | |
web-bootstrap.php | 2 years ago |
Implemented as a SAPI module, phpdbg can excert 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 5.4+
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
./configure --enable-phpdbg
make -j8
make install-phpdbg
Where the source directory has been used previously to build PHP, there exists a file named config.nice which can be used to invoke configure with the same parameters as were used by the last execution of configure.
Note: PHP must be configured with the switch --with-readline for phpdbg to support history, autocompletion, tab-listing etc.
The following switches are implemented (just like cli SAPI):
The following switches change the default behaviour of phpdbg:
Note: Passing -rr will cause phpdbg to quit after execution, rather than returning to the console.
See the website for tutorials/documentation