PHPackages                             qingmvc/qdebug - 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. qingmvc/qdebug

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

qingmvc/qdebug
==============

qdebug: qingmvc 调试模块，qingmvc debug module

010PHP

Since Aug 17Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

QDebug调试工具(BETA)
================

[](#qdebug调试工具beta)

- 应用调试
- SQL调试
- PHP代码调试

怎么使用
====

[](#怎么使用)

- 只要挂载qdebug拦截器，就开启了qdebug调试工具支持。
- 一般只在本地开发环境开启该工具，不要在线上环境使用。

```
//拦截器
'interceptors'=>
[
	//
	'qdebug'=>'\qdebug\DebugInterceptor',
	//或者
	'qdebug'=>
	[
		'class'=>'\qdebug\DebugInterceptor',
		//显示logo
		'showLogo'=>true,
		//是否开启记录
		'on'=>true
	],
]

```

怎么跳转到qdebug？
------------

[](#怎么跳转到qdebug)

1. 开启qdebug logo : 在右下角会显示蓝色的执行信息。`Q 0.1192 s`
2. 点击logo即跳转到qdebug主界面

应用调试
====

[](#应用调试)

记录应用执行信息：

- 脚本运行情况：消耗时长，消耗内存
- 包含了哪些脚本文件
- 服务器信息: $\_GET/$\_POST/$\_SERVER/$\_COOKIE/$\_SESSION/$\_FILES
- 类&amp;函数: 常量/constant,类/class,接口/interface,函数/function,trait
- 回溯&amp;断点：
- 节点：
- SQL：sql语句，执行消耗时长，执行消耗内存
- 控制台信息

自定义调试方法
=======

[](#自定义调试方法)

```
defined('QDEBUG') && qdebug_console(__METHOD__);
defined('QDEBUG') && qdebug_node(__METHOD__);
//
defined('QDEBUG') && qdebug_node(__METHOD__);
defined('QDEBUG') && qdebug_breakpoint();

```

接口
--

[](#接口)

```
/**
 * 添加控制台信息
 *
 * @param string $info 信息
 */
function qdebug_console($info);
/**
 * 添加节点信息,计算节点间运行时间和内存
 *
 * @param string $name 节点名称
 * @param string $summ 节点描述
 */
function qdebug_node($name,$summ='');
/**
 * 添加断点
 *
 * @param string $name 断点名称
 */
function qdebug_breakpoint($name='');

```

ajax提交的跳转无法缓存追踪数据
=================

[](#ajax提交的跳转无法缓存追踪数据)

- header跳转没有执行到afterCompletion

是否挂载了qdebug组件
=============

[](#是否挂载了qdebug组件)

`//拦截器中定义 define('QDEBUG',true); //判断是否加载qdebug，加载才能使用其函数 defined('QDEBUG') && qdebug_breakpoint('视图');`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://www.gravatar.com/avatar/a2a5a09e9277468f5b864c2ce93958aa93720e3dcf73ce82a50b8cc042ba1f90?d=identicon)[qingmvc](/maintainers/qingmvc)

---

Top Contributors

[![pandaengine](https://avatars.githubusercontent.com/u/7309485?v=4)](https://github.com/pandaengine "pandaengine (1 commits)")

### Embed Badge

![Health badge](/badges/qingmvc-qdebug/health.svg)

```
[![Health](https://phpackages.com/badges/qingmvc-qdebug/health.svg)](https://phpackages.com/packages/qingmvc-qdebug)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

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

PHP Debugbar integration for Laravel

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

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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