PHPackages                             j7tools/j7debug - 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. j7tools/j7debug

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

j7tools/j7debug
===============

调试工具 by Jose : 通过浏览器插件 firePHP/chromeLogger ,把php代码的调试信息输出在 console , 通过header头传递数据,不会中断 response , 适合调试 ajax 等过程 , 说明看代码里的 README.md

v0.0.4(6y ago)018PHPPHP &gt;=5.6.0

Since Aug 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/joselee214/j7tools)[ Packagist](https://packagist.org/packages/j7tools/j7debug)[ RSS](/packages/j7tools-j7debug/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (5)Used By (0)

PHP 调试小工具
=========

[](#php-调试小工具)

### 介绍

[](#介绍)

```
通过浏览器插件 fireBug/chromeLogger ,把php代码的调试信息输出在 console
通过header头传递数据,不会中断 response , 适合调试 ajax 等过程

```

### 安装

[](#安装)

```
-	composer require j7tools/j7debug
-   或者在你的 composer.json 的 "require" 加入 "j7tools/j7debug": "dev-master"
-   安装浏览器插件
    Chrome 可以使用
        Webug : https://chrome.google.com/webstore/detail/cjbeipenlpoeifpkjhgakejmikdhlhcj
        Chrome Logger : https://chrome.google.com/webstore/detail/noaneddfkdjfnfdakjjmocngnfkfehhd
    FireFox 可以使用 firebug + firePHP 插件
        firebug : https://addons.mozilla.org/zh-CN/firefox/addon/firebug/?src=collection&collection_id=da0ecd99-2289-7ab0-7d57-e7c489c845c3
        firePHP : https://addons.mozilla.org/zh-CN/firefox/addon/firephp/?src=search

-   注意: 打印大量信息会造成header过大,可能造成nginx错误,upstream too big 什么的错误,可以在nginx配置里调整缓冲区大小
fastcgi_buffers  128 512k;
fastcgi_buffer_size  10m;

-   Chrome 没有 firefox 支持的好, 当大量打印trace时候, chrome容易莫名其妙崩溃

```

### 使用方式

[](#使用方式)

- 直接在代码里插入使用

    1. 打印对象 j7tools\\j7debug::debug(\['debug\_value\_array'\]);
    2. 输出到console.error j7tools\\j7debug::debug(\['debug\_value\_array'\],'key');
    3. 打印调用堆栈信息 j7tools\\j7debug::debug(\['debug\_value\_array'\],'key','trace');
    4. 浏览器 console 支持 'log','trace','error','warn','dump','info', php 代码通过 define('J7\_DEBUG\_CONFIG','FirePHP,ChromePhp,var\_dump') 配置,默认 FirePHP,ChromePhp
    5. 建议封装成自己的全局方法 function jdebug($value,$key='',$type='log'){ if(class\_exists('j7tools\\j7debug')) j7tools\\j7debug::debug($value,$key,$type); }

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~310 days

Total

4

Last Release

2277d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/938008b0342ad893ad8d9a63f0771d43abbdc736d6caa7890b4de80fea1afd7e?d=identicon)[joselee214](/maintainers/joselee214)

---

Top Contributors

[![joselee214](https://avatars.githubusercontent.com/u/8338982?v=4)](https://github.com/joselee214 "joselee214 (18 commits)")

---

Tags

j7debugj7tools

### Embed Badge

![Health badge](/badges/j7tools-j7debug/health.svg)

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

###  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)
