PHP的SAPI模塊:PHPDBG
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!