PHP8 简介
作为SAPI模块实现,phpdbg可以在不影响代码功能或性能的情况下对环境进行完全控制。
phpdbg旨在成为PHP的轻量级、强大且易于使用的调试平台。它提供以下功能:
- 逐步调试
- 灵活的断点设置(类方法、函数、文件:行、地址、操作码)
- 内置的eval(),轻松访问PHP
- 用户自定义API
- 与SAPI无关 - 易于集成 PHP配置文件支持
- JIT超级全局变量 - 自定义设置!
- 可选的readline支持 - 舒适的终端操作
- 简便操作 - 请查看帮助 :)
| Option | Example Argument | Description |
|---|---|---|
| -c | -c/my/php.ini | Set php.ini file to load |
| -d | -dmemory_limit=4G | Set a php.ini directive |
| -n | Disable default php.ini | |
| -q | Suppress welcome banner | |
| -v | Enable oplog output | |
| -b | Disable color | |
| -i | -imy.init | Set .phpdbginit file |
| -I | Ignore default .phpdbginit | |
| -O | -Omy.oplog | Set oplog output file |
| -r | Run execution context | |
| -rr | Run execution context and quit after execution (not respecting breakpoints) | |
| -e | Generate extended information for debugger/profiler | |
| -E | Enable step through eval, careful! | |
| -s | -s=, -s=foo | Read code to execute from stdin with an optional delimiter |
| -S | -Scli | Override SAPI name, careful! |
| -l | -l4000 | Setup remote console ports |
| -a | -a192.168.0.3 | Setup remote console bind address |
| -x | Enable xml output (instead of normal text output) | |
| -p | -p, -p=func, -p* | Output opcodes and quit |
| -h | Print the help overview | |
| -V | Print version number | |
| -- | -- arg1 arg2 | Use to delimit phpdbg arguments and php $argv; append any $argv argument after it |