northrook/php-debug 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

northrook/php-debug

Composer 安装命令:

composer require northrook/php-debug

包简介

Dump and debug PHP

README 文档

README

Variable dump + call-origin / source-pane engine for Northrook packages.

Usage

use Northrook\Debug;
use Northrook\Debug\SourceView;
use Northrook\Debug\VarDumper;

$dump = Debug::this(
    user: $user,
    cart: $cart,
);

echo $dump->html();   // web
echo $dump->cli();    // terminal (ansi-formatter)
$dump->print();       // SAPI-aware echo

Named arguments become dump labels. Positional arguments use index labels.

// Instance dumper (stores results; does not emit)
$dumper = new VarDumper();
$dumper->dump(user: $user);
$dumper->last()?->print();
// Source pane for exception frames / error-handler
echo new SourceView(file: $path, line: $line);

Notes

  • No global dump() / dd() in this package.
  • HTML is JS-free (checkbox toggles + embedded CSS).
  • Secrets: default key names (password, token, …), #[Secret], @secret, SensitiveParameter.
  • Debug::now() / deferred() / queue() are stubs (throw until the timing handler exists).
  • Shared config lives on Northrook\Debugger (DebugConfig); per-instance options on VarDumper.

Dev

composer test
composer phpstan
php index.php          # CLI playground
# or open index.php in a browser

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固