|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 05-Dec-2019 | - |
| tests/ | H | 05-Dec-2019 | - | | |
| travis/ | H | 05-Dec-2019 | - | | |
| .gdbinit | H A D | 05-Dec-2019 | 250 | 11 | 10 |
| .gitignore | H A D | 05-Dec-2019 | 38 | 7 | 6 |
| .phpdbginit | H A D | 05-Dec-2019 | 2.5 KiB | 106 | 91 |
| .travis.yml | H A D | 05-Dec-2019 | 235 | 13 | 9 |
| CREDITS | H A D | 05-Dec-2019 | 45 | 3 | 2 |
| Changelog.md | H A D | 05-Dec-2019 | 1.8 KiB | 53 | 43 |
| Makefile.frag | H A D | 05-Dec-2019 | 1.5 KiB | 43 | 30 |
| README.md | H A D | 05-Dec-2019 | 2.5 KiB | 84 | 62 |
| config.m4 | H A D | 05-Dec-2019 | 2.3 KiB | 68 | 54 |
| config.w32 | H A D | 05-Dec-2019 | 831 | 20 | 15 |
| phpdbg.1 | H A D | 05-Dec-2019 | 1.3 KiB | 60 | 59 |
| phpdbg.c | H A D | 05-Dec-2019 | 40.4 KiB | 1,575 | 1,218 |
| phpdbg.h | H A D | 05-Dec-2019 | 8.1 KiB | 231 | 165 |
| phpdbg.init.d | H A D | 05-Dec-2019 | 2.8 KiB | 123 | 115 |
| phpdbg_bp.c | H A D | 05-Dec-2019 | 52.4 KiB | 1,639 | 1,323 |
| phpdbg_bp.h | H A D | 05-Dec-2019 | 5.6 KiB | 147 | 79 |
| phpdbg_break.c | H A D | 05-Dec-2019 | 2.1 KiB | 56 | 25 |
| phpdbg_break.h | H A D | 05-Dec-2019 | 1.6 KiB | 38 | 9 |
| phpdbg_btree.c | H A D | 05-Dec-2019 | 6.3 KiB | 222 | 158 |
| phpdbg_btree.h | H A D | 05-Dec-2019 | 2.8 KiB | 66 | 36 |
| phpdbg_cmd.c | H A D | 05-Dec-2019 | 18.4 KiB | 817 | 634 |
| phpdbg_cmd.h | H A D | 05-Dec-2019 | 5.9 KiB | 181 | 110 |
| phpdbg_frame.c | H A D | 05-Dec-2019 | 6.3 KiB | 207 | 154 |
| phpdbg_frame.h | H A D | 05-Dec-2019 | 1.5 KiB | 31 | 7 |
| phpdbg_help.c | H A D | 05-Dec-2019 | 34.7 KiB | 934 | 679 |
| phpdbg_help.h | H A D | 05-Dec-2019 | 1.9 KiB | 49 | 18 |
| phpdbg_info.c | H A D | 05-Dec-2019 | 11.2 KiB | 372 | 299 |
| phpdbg_info.h | H A D | 05-Dec-2019 | 1.6 KiB | 40 | 14 |
| phpdbg_lexer.c | H A D | 05-Dec-2019 | 26.4 KiB | 1,144 | 1,114 |
| phpdbg_lexer.h | H A D | 05-Dec-2019 | 1.7 KiB | 42 | 15 |
| phpdbg_lexer.l | H A D | 05-Dec-2019 | 3.1 KiB | 170 | 52 |
| phpdbg_list.c | H A D | 05-Dec-2019 | 6.5 KiB | 234 | 170 |
| phpdbg_list.h | H A D | 05-Dec-2019 | 1.8 KiB | 42 | 15 |
| phpdbg_opcode.c | H A D | 05-Dec-2019 | 9.6 KiB | 369 | 321 |
| phpdbg_opcode.h | H A D | 05-Dec-2019 | 1.7 KiB | 32 | 8 |
| phpdbg_parser.c | H A D | 05-Dec-2019 | 53.9 KiB | 1,905 | 1,286 |
| phpdbg_parser.h | H A D | 05-Dec-2019 | 3.5 KiB | 127 | 76 |
| phpdbg_parser.y | H A D | 05-Dec-2019 | 3.9 KiB | 185 | 155 |
| phpdbg_print.c | H A D | 05-Dec-2019 | 7.9 KiB | 254 | 197 |
| phpdbg_print.h | H A D | 05-Dec-2019 | 1.6 KiB | 41 | 12 |
| phpdbg_prompt.c | H A D | 05-Dec-2019 | 34.6 KiB | 1,336 | 1,068 |
| phpdbg_prompt.h | H A D | 05-Dec-2019 | 2.5 KiB | 68 | 38 |
| phpdbg_set.c | H A D | 05-Dec-2019 | 7.6 KiB | 259 | 203 |
| phpdbg_set.h | H A D | 05-Dec-2019 | 1.7 KiB | 43 | 17 |
| phpdbg_utils.c | H A D | 05-Dec-2019 | 10.7 KiB | 456 | 348 |
| phpdbg_utils.h | H A D | 05-Dec-2019 | 5.7 KiB | 148 | 92 |
| phpdbg_watch.c | H A D | 05-Dec-2019 | 24.7 KiB | 790 | 607 |
| phpdbg_watch.h | H A D | 05-Dec-2019 | 3.5 KiB | 113 | 61 |
| phpdbg_win.c | H A D | 05-Dec-2019 | 1.9 KiB | 43 | 17 |
| phpdbg_win.h | H A D | 05-Dec-2019 | 1.6 KiB | 37 | 11 |
| test.php | H A D | 05-Dec-2019 | 1.1 KiB | 88 | 65 |
| web-bootstrap.php | H A D | 05-Dec-2019 | 2.1 KiB | 65 | 47 |
README.md
1The interactive PHP debugger
2============================
3
4Implemented as a SAPI module, phpdbg can excert 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