PHPackages                             ice-php/debug - 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. ice-php/debug

ActiveComposer

ice-php/debug
=============

icePHP 调试功能

01091PHP

Since Dec 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ice-php/debug)[ Packagist](https://packagist.org/packages/ice-php/debug)[ RSS](/packages/ice-php-debug/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

显示/记录调试信息
=========

[](#显示记录调试信息)

- 记录开始时间

    Debug::start(): void
- 页面处理结束,返回或在页面正文显示调试信息

    Debug::end($ret = null)
- 获取本次Web访问的持续时间

    Debug::getPersist(): float
- 添加一条调试信息

    Debug::set($msg, string $type = 'other'): void

    或

    debug($msg): void
- 记录一次数据库访问的调试信息

    Debug::setSql(string $method, string $prepare, float $time, $params = null, string $sql = ''): void
- 记录一次网络请求的调试信息

    Debug::setNet(string $url, $data, string $return, float $time): void
- 判断是否调试状态 ,可被临时关闭

    Debug::isDebug(string $name = ''): bool

    或

    isDebug(string $name = ''): bool
- 清除调试信息

    Debug::clearMsgs():void
- 重新计时,主要处理fragment的重入问题

    Debug::clear(): void

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.8% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/148289317?v=4)[icePHP](/maintainers/icePHP)[@IcePHP](https://github.com/IcePHP)

---

Top Contributors

[![ice-php](https://avatars.githubusercontent.com/u/23303429?v=4)](https://github.com/ice-php "ice-php (30 commits)")[![gsnidi](https://avatars.githubusercontent.com/u/38715838?v=4)](https://github.com/gsnidi "gsnidi (1 commits)")

### Embed Badge

![Health badge](/badges/ice-php-debug/health.svg)

```
[![Health](https://phpackages.com/badges/ice-php-debug/health.svg)](https://phpackages.com/packages/ice-php-debug)
```

PHPackages © 2026

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