Name Date Size #Lines LOC

..05-Dec-2019-

tests/H05-Dec-2019-

travis/H05-Dec-2019-

.gdbinitH A D05-Dec-2019250 1110

.gitignoreH A D05-Dec-201938 76

.phpdbginitH A D05-Dec-20192.5 KiB10691

.travis.ymlH A D05-Dec-2019220 128

CREDITSH A D05-Dec-201945 32

Changelog.mdH A D05-Dec-20191.8 KiB5343

Makefile.fragH A D05-Dec-20191.5 KiB4330

README.mdH A D05-Dec-20192.5 KiB8462

config.m4H A D05-Dec-20192.7 KiB7559

config.w32H A D05-Dec-20191.2 KiB3125

create-test.phpH A D05-Dec-20194 KiB151110

phpdbg.1H A D05-Dec-20191.3 KiB6059

phpdbg.cH A D05-Dec-201960.8 KiB2,1911,718

phpdbg.hH A D05-Dec-201912.7 KiB329249

phpdbg.init.dH A D05-Dec-20192.8 KiB123115

phpdbg_bp.cH A D05-Dec-201955.8 KiB1,6341,286

phpdbg_bp.hH A D05-Dec-20196.2 KiB16595

phpdbg_break.cH A D05-Dec-20192.1 KiB5625

phpdbg_break.hH A D05-Dec-20191.6 KiB389

phpdbg_btree.cH A D05-Dec-20196.6 KiB240174

phpdbg_btree.hH A D05-Dec-20192.9 KiB7138

phpdbg_cmd.cH A D05-Dec-201920.4 KiB839652

phpdbg_cmd.hH A D05-Dec-20196.1 KiB186114

phpdbg_eol.cH A D05-Dec-20194.2 KiB173122

phpdbg_eol.hH A D05-Dec-20191.5 KiB4718

phpdbg_frame.cH A D05-Dec-20197.2 KiB245174

phpdbg_frame.hH A D05-Dec-20191.5 KiB317

phpdbg_help.cH A D05-Dec-201938.2 KiB1,017744

phpdbg_help.hH A D05-Dec-20192 KiB5119

phpdbg_info.cH A D05-Dec-201916.9 KiB465379

phpdbg_info.hH A D05-Dec-20191.7 KiB4216

phpdbg_io.cH A D05-Dec-20198 KiB362274

phpdbg_io.hH A D05-Dec-20191.9 KiB4215

phpdbg_lexer.cH A D05-Dec-201946.8 KiB2,1442,109

phpdbg_lexer.hH A D05-Dec-20191.7 KiB4316

phpdbg_lexer.lH A D05-Dec-20193.8 KiB21575

phpdbg_list.cH A D05-Dec-201912.1 KiB403303

phpdbg_list.hH A D05-Dec-20192 KiB5728

phpdbg_opcode.cH A D05-Dec-20196.4 KiB221168

phpdbg_opcode.hH A D05-Dec-20192 KiB4721

phpdbg_out.cH A D05-Dec-201930.3 KiB1,3221,023

phpdbg_out.hH A D05-Dec-20194.8 KiB8547

phpdbg_parser.cH A D05-Dec-201955.3 KiB1,9561,323

phpdbg_parser.hH A D05-Dec-20193.6 KiB13180

phpdbg_parser.yH A D05-Dec-20194.5 KiB206172

phpdbg_print.cH A D05-Dec-201914 KiB420333

phpdbg_print.hH A D05-Dec-20191.7 KiB4313

phpdbg_prompt.cH A D05-Dec-201955.6 KiB1,9171,533

phpdbg_prompt.hH A D05-Dec-20192.6 KiB7141

phpdbg_rinit_hook.cH A D05-Dec-20193.4 KiB10669

phpdbg_rinit_hook.hH A D05-Dec-20191.8 KiB4215

phpdbg_set.cH A D05-Dec-20199.6 KiB289226

phpdbg_set.hH A D05-Dec-20191.7 KiB4519

phpdbg_sigio_win32.cH A D05-Dec-20192.9 KiB11366

phpdbg_sigio_win32.hH A D05-Dec-20191.4 KiB3914

phpdbg_sigsafe.cH A D05-Dec-20191.6 KiB6042

phpdbg_sigsafe.hH A D05-Dec-2019457 2516

phpdbg_utils.cH A D05-Dec-201922.7 KiB847684

phpdbg_utils.hH A D05-Dec-20195.2 KiB13685

phpdbg_wait.cH A D05-Dec-201913.2 KiB408313

phpdbg_wait.hH A D05-Dec-20191.3 KiB307

phpdbg_watch.cH A D05-Dec-201940.3 KiB1,167861

phpdbg_watch.hH A D05-Dec-20193.7 KiB12371

phpdbg_webdata_transfer.cH A D05-Dec-20195.2 KiB176129

phpdbg_webdata_transfer.hH A D05-Dec-20191.3 KiB286

phpdbg_win.cH A D05-Dec-20191.9 KiB4216

phpdbg_win.hH A D05-Dec-20191.6 KiB3811

test.phpH A D05-Dec-20191.1 KiB8865

web-bootstrap.phpH A D05-Dec-20192.1 KiB6547

xml.mdH A D05-Dec-201920 KiB652484

README.md

1The interactive PHP debugger
2============================
3
4Implemented as a SAPI module, phpdbg can exert complete control over the environment without impacting the functionality or performance of your code.
5
6phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP 5.4+
7
8[![phpdbg on travis-ci](https://travis-ci.org/krakjoe/phpdbg.png?branch=master)](https://travis-ci.org/krakjoe/phpdbg)
9
10Features
11========
12
13 - Stepthrough Debugging
14 - Flexible Breakpoints (Class Method, Function, File:Line, Address, Opcode)
15 - Easy Access to PHP with built-in eval()
16 - Easy Access to Currently Executing Code
17 - Userland API
18 - SAPI Agnostic - Easily Integrated
19 - PHP Configuration File Support
20 - JIT Super Globals - Set Your Own!!
21 - Optional readline Support - Comfortable Terminal Operation
22 - Remote Debugging Support - Bundled Java GUI
23 - Easy Operation - See Help :)
24
25Planned
26=======
27
28 - Improve Everything :)
29
30Installation
31============
32
33To install **phpdbg**, you must compile the source against your PHP installation sources, and enable the SAPI with the configure command.
34
35```
36cd /usr/src/php-src/sapi
37git clone https://github.com/krakjoe/phpdbg
38cd ../
39./buildconf --force
40./configure --enable-phpdbg
41make -j8
42make install-phpdbg
43```
44
45Where 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
46parameters as were used by the last execution of *configure*.
47
48**Note:** PHP must be configured with the switch --with-readline for phpdbg to support history, autocompletion, tab-listing etc.
49
50Command Line Options
51====================
52
53The following switches are implemented (just like cli SAPI):
54
55 - -n ignore php ini
56 - -c search for php ini in path
57 - -z load zend extension
58 - -d define php ini entry
59
60The following switches change the default behaviour of phpdbg:
61
62 - -v disables quietness
63 - -s enabled stepping
64 - -e sets execution context
65 - -b boring - disables use of colour on the console
66 - -I ignore .phpdbginit (default init file)
67 - -i override .phpgdbinit location (implies -I)
68 - -O set oplog output file
69 - -q do not print banner on startup
70 - -r jump straight to run
71 - -E enable step through eval()
72 - -l listen ports for remote mode
73 - -a listen address for remote mode
74 - -S override SAPI name
75
76**Note:** Passing -rr will cause phpdbg to quit after execution, rather than returning to the console.
77
78Getting Started
79===============
80
81See the website for tutorials/documentation
82
83http://phpdbg.com
84