PHPackages                             yangweijie/think-trace - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. yangweijie/think-trace

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

yangweijie/think-trace
======================

thinkphp debug trace

v1.8(2y ago)121Apache-2.0PHPPHP &gt;=7.4.0

Since Apr 28Pushed 2y agoCompare

[ Source](https://github.com/yangweijie/think-trace)[ Packagist](https://packagist.org/packages/yangweijie/think-trace)[ RSS](/packages/yangweijie-think-trace/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

think-trace
===========

[](#think-trace)

用于ThinkPHP6+的页面Trace扩展，支持Html页面和浏览器控制台两种方式输出。

安装
--

[](#安装)

```
composer require topthink/think-trace

```

配置
--

[](#配置)

安装后config目录下会自带trace.php配置文件。

type参数用于指定trace类型，支持html和console两种方式。

升级功能
----

[](#升级功能)

### type 为 Html 时，文件显示的地址可以直接跳转ide ，显示里sql产生的文件地址

[](#type-为-html-时文件显示的地址可以直接跳转ide-显示里sql产生的文件地址)

### 调试tab 显示内容格式化

[](#调试tab-显示内容格式化)

### type 为Console sql 显示发生的文:件行号。

[](#type-为console-sql-显示发生的文件行号)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

731d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0b5f090a9bb92727e9c2e8281d05c2da5f2f9bf66cf1811714a9ffc0e383325?d=identicon)[yangweijie](/maintainers/yangweijie)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (13 commits)")[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (5 commits)")

### Embed Badge

![Health badge](/badges/yangweijie-think-trace/health.svg)

```
[![Health](https://phpackages.com/badges/yangweijie-think-trace/health.svg)](https://phpackages.com/packages/yangweijie-think-trace)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M910](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[topthink/think-trace

thinkphp debug trace

111.3M48](/packages/topthink-think-trace)[steevanb/php-backtrace

Nice debug\_backtrace() dump, with call and code preview

22142.6k5](/packages/steevanb-php-backtrace)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
