php debugbar

php开源的调试工具
new Debugbar -> addCollector  => Collector 收集数据 => render(js)

  • 数据收集(集合) DataCollector
  • 显示格式化工具 DataFormatter
  • 调试数据存储 Storage
  • js渲染工具 Resources(widget, debugbar)

扩展:
创建 Collector 继承 DataCollector, 根据需要创建 Resources/widgets/<name>

github: https://github.com/maximebf/php-debugbar
document: http://phpdebugbar.com/docs/

 

发表评论

您的电子邮箱地址不会被公开。