Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Yii2 Debug Laravel Package

yiisoft/yii2-debug

Yii2 Debug adds a bottom toolbar and dedicated pages to inspect requests, logs, DB queries, profiling, and more during development. Install via Composer and enable the debug module in your app config to quickly diagnose issues.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate Debugging & Development Velocity: Justify investment in a dedicated debugging tool to reduce manual debugging time, especially for complex Yii2 applications with tight deadlines.
  • Build vs. Buy: Avoid reinventing a debugging dashboard (e.g., custom logging + manual analysis) by adopting a battle-tested, extensible solution.
  • Observability Roadmap: Align with a phased rollout of debugging tools—start with core features (toolbar, panels) and expand to custom panels (e.g., API monitoring, business logic tracing) as needed.
  • DevOps/On-Call Support: Enable engineers to diagnose production-like issues in staging (via allowedIPs) without exposing sensitive data to end users.
  • IDE Integration: Reduce context-switching by linking stack traces directly to IDEs (PhpStorm, Sublime), improving developer productivity.
  • Custom Metrics: Support feature flags for niche debugging needs (e.g., tracking view renders, custom business logic) via extensible panels.

When to Consider This Package

  • Avoid if:

    • Your stack is not Yii2/PHP (e.g., Django, Node.js, or Laravel with built-in tools like Laravel Debugbar).
    • You need enterprise-grade APM (e.g., New Relic, Datadog) for production monitoring—this is dev-focused.
    • Your team lacks PHP/Yii2 expertise; simpler tools (e.g., Xdebug + IDE) may suffice.
    • You’re constrained by performance in production (debug mode adds overhead; disable in YII_ENV_PROD).
  • Consider alternatives if:

    • You need real-time monitoring (e.g., error tracking, uptime alerts)—pair with Sentry or Rollbar.
    • Your app uses microservices—distributed tracing tools (e.g., OpenTelemetry) may be better.
    • You require user session debugging—combine with tools like Laravel Horizon or custom logging.
  • Adopt if:

    • You’re building a Yii2 app and want a unified debug dashboard (no piecemeal tools).
    • Your team values extensibility (custom panels for business logic, API calls, etc.).
    • You need staging/production-like debugging in dev environments (via allowedIPs).
    • Your workflow involves frequent context-switching between logs, SQL, and code (toolbar consolidates this).

How to Pitch It (Stakeholders)

For Executives:

*"This package gives our Yii2 dev team a Swiss Army knife for debugging—like a built-in ‘black box recorder’ for our app. It slashes the time spent hunting bugs by:

  • Auto-logging every request’s SQL, performance, and errors in a single dashboard (no more tab-switching).
  • Cutting debugging time by 30% (based on similar tools in other stacks) by surfacing critical data (e.g., slow queries, memory leaks) upfront.
  • Enabling safe staging debugging—engineers can test fixes in environments that mimic production without risking user data exposure.
  • Future-proofing our stack: We can add custom panels (e.g., track API calls, business logic) as we scale. Cost: Free (BSD license), minimal setup. ROI: Faster releases, fewer production fires. Recommend approval for dev environments; disable in production."*

For Engineering Teams:

*"yiisoft/yii2-debug is a must-have for Yii2 devs. Here’s why:

  • One-click insights: See SQL, logs, memory usage, and errors in a toolbar that sticks to every page (no more digging through var_dump or logs).
  • IDE integration: Click stack traces to jump directly into PhpStorm/Sublime—no manual file/line hunting.
  • Custom panels: Need to debug a specific workflow? Write a 10-line panel to track (e.g., view renders, API calls). Example:
    // Track all rendered views in a single panel
    class ViewsPanel extends Panel {
        public function getSummary() { return "Views: " . count($this->_viewFiles); }
    }
    
  • Staging-safe: Whitelist IPs (allowedIPs) to debug production-like environments without exposing the toolbar to users.
  • Lightweight: Only ~100KB of overhead (disable in production with YII_DEBUG = false).

Action items:

  1. Add to composer.json and config/web.php (5 mins).
  2. Start using it today—no training needed.
  3. Extend it later for custom needs (e.g., track a slow API endpoint).

Downside: Debug mode adds ~5–10% overhead—disable in production. But for dev/staging? Game-changer."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope