PHP的SAPI模块:PHPDBG

jopen 10年前

PHPDBG是一个PHP的SAPI模块,可以在不用修改代码和不影响性能的情况下控制PHP的运行环境。

PHPDBG的目标是成为一个轻量级、强大、易用的PHP调试平台(PHP5.4+)。

主要功能:

  • 单步调试

  • 灵活的下断点方式(类方法、函数、文件:行、内存地址、opcode)

  • 可直接调用php的eval

  • 可以查看当前执行的代码

  • 用户空间API(userland/user space)

  • 方便集成

  • 支持指定php配置文件

  • JIT全局变量

  • readline支持(可选),终端操作更方便

  • 远程debug,使用java GUI

  • 操作简便(具体看help)

Stepthrough Debugging

Inspect and affect the environment after the execution of each opcode.

Flexible Breakpoints

Allow you to specify very precisely when to break execution.

Easy Access to PHP with built-in eval()

The power of PHP available to every command issued !

Disassembly of PHP Code

Detailed disassebmly enables precise debugging.

Easy Access to Currently Executing Code

Listing code while executing keeps your eyes where the action is.

Userland API

Allows your applications to interact with and setup phpdbg.

SAPI Agnostic - Easily Integrated

Take me anywhere :)

Remote Debugging

phpdbg can act as a debugging server, Java client included.

PHP5.6+ core SAPI

From PHP5.6 phpdbg is included with PHP.


项目主页:http://www.open-open.com/lib/view/home/1410313779195