大网数据广告活动
PHP 语言与运行手册

Interactive PHP Debugger

· 52CE 我爱测

Implemented as a SAPI module, phpdbg can exert complete control over the environment without impacting the functionality or performance of your code.

Interactive PHP Debugger

Introduction

Implemented as a SAPI module, phpdbg can exert complete control over the environment without impacting the functionality or performance of your code.

phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP. It offers the following features:

  • Step-Through Debugging

  • Flexible Breakpoints (Class Method, Function, File:Line, Address, Opcode)

  • Easy Access to PHP with built-in eval()

  • Userland API

  • SAPI Agnostic - Easily Integrated

  • PHP Configuration File Support

  • JIT Super Globals - Set Your Own !!

  • Optional readline Support - Comfortable Terminal Operation

  • Easy Operation - See Help :)

Command line options
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

来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
PHP Documentation Group
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。