debug-using-debugbar

Diagnose Laravel performance issues by analyzing Laravel Debugbar request data.

5|1|Updated Feb 17, 2024
One-click install
npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill debug-using-debugbar-karuhun-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-using-debugbar
Source: https://github.com/karuhun-developer/template-laravel-livewire/tree/main/.cursor/skills/debug-using-debugbar
Command: npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill debug-using-debugbar-karuhun-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fruitcake/laravel-debugbar, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill aids in optimizing and debugging Laravel applications by using Laravel Debugbar to identify and diagnose issues like slow pages, N+1 queries, exceptions, and other performance bottlenecks.

Core Features & Use Cases

  • Request Analysis: Inspect request summaries and identify collectors with data.
  • Query Optimization: Analyze queries, detect duplicates, and review slow queries.
  • Exception Tracking: Trace exceptions to source code for efficient troubleshooting.
  • Use Case: When a user experiences a slow request or a bug in a Laravel application, this skill can be used to quickly diagnose the issue.

Quick Start

To find and inspect the most recent request, use the command: php artisan debugbar:get latest

Frequently Asked Questions about debug-using-debugbar

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug slow Laravel requests and find performance bottlenecks?

To debug slow Laravel requests, this Skill analyzes data captured by Laravel Debugbar to identify slow queries, N+1 issues, and performance bottlenecks. It inspects request summaries to pinpoint exactly where request handling delays occur.

How do I detect and resolve N+1 query problems in Laravel?

To resolve N+1 query problems in Laravel, this Skill analyzes query data from Debugbar to detect duplicate queries and review slow queries. It traces these queries back to their source code for efficient troubleshooting and optimization.

What is the best way to trace Laravel exceptions to their source code?

The best way to trace Laravel exceptions to source code is by using this Skill to analyze exception data captured by Laravel Debugbar. It tracks exceptions directly to their origin, enabling efficient troubleshooting of bugs in your application.

Do I need the fruitcake/laravel-debugbar package installed to use this?

Yes, you need the fruitcake/laravel-debugbar package installed in your Laravel application. This Skill requires Laravel and this specific dependency to capture the request data, queries, and exceptions it analyzes.

How do I inspect the most recent Laravel request data captured by Debugbar?

To inspect the most recent Laravel request data, you can use the command 'php artisan debugbar:get latest'. This retrieves the latest request summary so the Skill can analyze collectors and identify issues.