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.
 
 
 
 
 
 
Dmitry Stogov c22a1c83f3 Zend signals should be installed after request startup (or regular signals may be installed before zend_signal_startup) 10 years ago
..
tests Fixed bug #72213 (Finally leaks on nested exceptions). 10 years ago
travis Merge sapi/phpdbg into PHP-5.6 12 years ago
.gdbinit Merge branch 'master' of sapi/phpdbg into PHP-5.6 12 years ago
.gitignore Merge sapi/phpdbg into PHP-5.6 12 years ago
.phpdbginit Merge branch 'master' of sapi/phpdbg into PHP-5.6 12 years ago
.travis.yml Merge phpdbg into PHP-5.6 12 years ago
CREDITS credits file for phpdbg 12 years ago
Changelog.md Merge branch 'master' of sapi/phpdbg into PHP-5.6 12 years ago
Makefile.frag Make bin2hex() and hex2bin() timing safe 11 years ago
README.md Merge phpdbg into PHP-5.6 12 years ago
config.m4 phpdbg config.m4: make it detectable by old shells 10 years ago
config.w32 standard tsrm usage for seven 10 years ago
create-test.php Happy new year (Update copyright to 2016) 10 years ago
phpdbg.1 Merge sapi/phpdbg into PHP-5.6 12 years ago
phpdbg.c Zend signals should be installed after request startup (or regular signals may be installed before zend_signal_startup) 10 years ago
phpdbg.h Fixed phpdbg build without --enable-zend-signals 10 years ago
phpdbg.init.d Merge branch 'master' of sapi/phpdbg into PHP-5.6 12 years ago
phpdbg_bp.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_bp.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_break.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_break.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_btree.c Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_btree.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_cmd.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_cmd.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_eol.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_eol.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_frame.c - get rid of EG(scope). zend_get_executed_scope() should be used instead. 10 years ago
phpdbg_frame.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_help.c Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_help.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_info.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_info.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_io.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_io.h Happy new year (Update copyright to 2016) 10 years ago
phpdbg_lexer.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_lexer.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_lexer.l Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_list.c Fix include_once in phpdbg 10 years ago
phpdbg_list.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_opcode.c Fixed bug #72213 (Finally leaks on nested exceptions). 10 years ago
phpdbg_opcode.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_out.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_out.h Fix format attributes in ZTS 10 years ago
phpdbg_parser.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_parser.h Add # delimiter to phpdbg commands 10 years ago
phpdbg_parser.y Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_print.c - get rid of EG(scope). zend_get_executed_scope() should be used instead. 10 years ago
phpdbg_print.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_prompt.c Merge branch 'PHP-7.0' 10 years ago
phpdbg_prompt.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_rinit_hook.c Happy new year (Update copyright to 2016) 10 years ago
phpdbg_rinit_hook.h Happy new year (Update copyright to 2016) 10 years ago
phpdbg_set.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_set.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_sigio_win32.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_sigio_win32.h Happy new year (Update copyright to 2016) 10 years ago
phpdbg_sigsafe.c Fix bug #71575 removing extra semicolons outside macros 10 years ago
phpdbg_sigsafe.h Fix issues with phpdbg SIGINT handler 11 years ago
phpdbg_utils.c Print .0 in phpdbg opcode dumps 10 years ago
phpdbg_utils.h Fix crash when advancing inside an internal function 10 years ago
phpdbg_wait.c Eliminate usages of _PP macros 10 years ago
phpdbg_wait.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_watch.c - get rid of EG(scope). zend_get_executed_scope() should be used instead. 10 years ago
phpdbg_watch.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_webdata_transfer.c Happy new year (Update copyright to 2016) 10 years ago
phpdbg_webdata_transfer.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_win.c Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
phpdbg_win.h Merge branch 'PHP-5.6' into PHP-7.0 10 years ago
test.php Merge sapi/phpdbg into PHP-5.6 12 years ago
web-bootstrap.php Merge branch 'master' of sapi/phpdbg into PHP-5.6 12 years ago
xml.md typo fixes - https://github.com/vlajos/misspell_fixer 11 years ago

README.md

The interactive PHP debugger

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 5.4+

phpdbg on travis-ci

Features

  • Stepthrough Debugging
  • Flexible Breakpoints (Class Method, Function, File:Line, Address, Opcode)
  • Easy Access to PHP with built-in eval()
  • Easy Access to Currently Executing Code
  • Userland API
  • SAPI Agnostic - Easily Integrated
  • PHP Configuration File Support
  • JIT Super Globals - Set Your Own!!
  • Optional readline Support - Comfortable Terminal Operation
  • Remote Debugging Support - Bundled Java GUI
  • Easy Operation - See Help :)

Planned

  • 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
./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.

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

The following switches change the default behaviour of phpdbg:

  • -v disables quietness
  • -s enabled stepping
  • -e sets execution context
  • -b boring - disables use of colour on the console
  • -I ignore .phpdbginit (default init file)
  • -i override .phpgdbinit location (implies -I)
  • -O set oplog output file
  • -q do not print banner on startup
  • -r jump straight to run
  • -E enable step through eval()
  • -l listen ports for remote mode
  • -a listen address for remote mode
  • -S override SAPI name

Note: Passing -rr will cause phpdbg to quit after execution, rather than returning to the console.

Getting Started

See the website for tutorials/documentation

http://phpdbg.com