You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
krakjoe 3e3a7babad stop multiple executions from occuring at once, #5 12 years ago
.gitignore - Added initial code for a simple prompt 12 years ago
Makefile.frag import 12 years ago
README.md ... 12 years ago
config.m4 update to default on 12 years ago
phpdbg.c stop multiple executions from occuring at once, #5 12 years ago
phpdbg.h break on opline 12 years ago
phpdbg.png ... 12 years ago
phpdbg_bp.c no estrdup on opline breakpoints 12 years ago
phpdbg_bp.h phpdbg_break userland 12 years ago
phpdbg_help.c ... 12 years ago
phpdbg_help.h ... 12 years ago
phpdbg_opcode.c - Fix code 12 years ago
phpdbg_opcode.h - Added separated file to opcode decode function 12 years ago
phpdbg_prompt.c stop multiple executions from occuring at once, #5 12 years ago
phpdbg_prompt.h clean not destroy included files 12 years ago
test.php stop multiple executions from occuring at once, #5 12 years ago

README.md

The interactive PHP debugger

phpdbg is an interactive debugger for PHP.

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 function entry, file:line or address
  • showing debug backtraces
  • easy manipulation of the environment with built-in eval()
  • sapi agnositicism, easy integration

Planned

  • mocking server environments/requests
  • userland script-ability
  • 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

Screeny

screenshot