PHP8 簡(jiǎn)介

2023-09-21 14:50 更新

作為SAPI模塊實(shí)現(xiàn),phpdbg可以在不影響代碼功能或性能的情況下對(duì)環(huán)境進(jìn)行完全控制。

phpdbg旨在成為PHP的輕量級(jí)、強(qiáng)大且易于使用的調(diào)試平臺(tái)。它提供以下功能:

  • 逐步調(diào)試
  • 靈活的斷點(diǎn)設(shè)置(類方法、函數(shù)、文件:行、地址、操作碼)
  • 內(nèi)置的eval(),輕松訪問PHP
  • 用戶自定義API
  • 與SAPI無關(guān) - 易于集成 PHP配置文件支持 
  • JIT超級(jí)全局變量 - 自定義設(shè)置! 
  • 可選的readline支持 - 舒適的終端操作 
  • 簡(jiǎn)便操作 - 請(qǐng)查看幫助 :)
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


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)