debug-using-debugbar

Diagnose slow Laravel requests by inspecting Laravel Debugbar data via artisan commands.

113|135|Updated Aug 28, 2019
One-click install
npx skills add https://github.com/hexlet-volunteers/hexlet-sicp --skill debug-using-debugbar-hexlet-volunteers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-using-debugbar
Source: https://github.com/hexlet-volunteers/hexlet-sicp/tree/main/.agents/skills/debug-using-debugbar
Command: npx skills add https://github.com/hexlet-volunteers/hexlet-sicp --skill debug-using-debugbar-hexlet-volunteers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers diagnose Laravel application issues and optimize performance by leveraging data captured by Laravel Debugbar.

Core Features & Use Cases

  • Inspect requests and collectors via artisan commands (debugbar:find, debugbar:get) to surface issues such as exceptions, slow responses, or high query counts.
  • Drill down into specific collectors (exceptions, queries, time) to identify root causes and tracebacks.
  • Optimize database interactions and request handling by analyzing debugbar data and backtraces to locate N+1 queries or performance bottlenecks.

Quick Start

Run the artisan commands to locate issues (debugbar:find), inspect results (debugbar:get {id}), and analyze queries (debugbar:queries) to diagnose and optimize a Laravel request.

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?

You can debug slow Laravel requests by inspecting Laravel Debugbar data captured during execution. Use artisan commands like debugbar:find and debugbar:get to surface slow responses, high query counts, and tracebacks for performance bottlenecks.

How do I find and resolve N+1 query problems in a Laravel application?

Find N+1 query problems in Laravel by running the debugbar:queries artisan command to analyze captured query data. Examine backtraces within the queries collector to locate duplicate queries and optimize database interactions.

What's the best way to diagnose Laravel exceptions and failed requests?

Diagnose Laravel exceptions and failed requests by using the debugbar:get artisan command to drill down into specific exception collectors. This surfaces root causes, tracebacks, and anomalies captured by Laravel Debugbar during the request lifecycle.

Do I need Laravel Debugbar installed and debug mode enabled to inspect request data?

Yes, you need a Laravel application with the fruitcake/laravel-debugbar package installed and debug mode enabled. This setup allows artisan CLI commands to capture and surface request data for troubleshooting and profiling.

How does analyzing Laravel Debugbar collectors help optimize database interactions?

Analyzing Laravel Debugbar collectors helps optimize database interactions by exposing duplicate queries and execution times. You inspect query backtraces to pinpoint inefficient database calls and refactor them for better application performance.