定制 technosophos/xdebugutils 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

technosophos/xdebugutils

Composer 安装命令:

composer require technosophos/xdebugutils

包简介

Tools for processing Xdebug output.

README 文档

README

This provides a library and various command-line utilities for working with Xdebug output.

Scripts included:

  • trace4func: Given a function name, give stack traces for all cases where the function was called.
  • whatisincluded: Find all of the files that were included on a given run
  • whocalls: Given a function, print info about the calling function. For example, find all functions that call file_exists(_)).

Installation

To collect data, you must have Xdebug installed, and you must be able to configure it to generate traces.

To use these tools, you will need PHP 5.2 or later.

To get started:

  1. Clone the Git repository
  2. Use any of the included command line tools.

Usage

  1. You will need trace file to work with. Consult the Xdebug documentation. Make sure you set the trace output to generate machine-readable output.
  2. Run any of the provided scripts to analyze trace output.

Collecting Data with Xdebug

Example php.ini config for Xdebug:

xdebug.auto_trace = 1
xdebug.trace_format = 1
xdebug.trace_output_name = php-trace.%t

The second one is the most important: Set the tracing format to 1.

More information

You can easily extend this suite. See API (included here) to get started, or simply take a look at some of the tools in this package. Nothing is really that sophisticated.

Related Projects

XdebugUtils by mbutcher (2010)

Thanks to Derick Rethans, who posted a simple PHP tool for parsing Xdebug trace files.

统计信息

  • 总下载量: 488
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固