debugging

Diagnose Rails issues via logs, console, SQL inspection, and performance profiling.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/pelletencate/iron-horse --skill debugging-pelletencate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/pelletencate/iron-horse/tree/main/skills/debugging
Command: npx skills add https://github.com/pelletencate/iron-horse --skill debugging-pelletencate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rails debugging challenges are solved by providing targeted techniques for logs, console, SQL inspection, and performance profiling to speed root-cause analysis.

Core Features & Use Cases

  • Log analysis and quick issue triage
  • Console-based data inspection and breakpoint debugging
  • N+1 query detection and query inspection
  • Performance profiling and routing/middleware insight
  • Migration and schema debugging guidance
  • Gotchas and safe debugging practices for production-like environments

Quick Start

Begin by running the Rails console and tailing development logs to reproduce and inspect issues.

Frequently Asked Questions about debugging

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

FAQPage Schema
How do I detect N+1 queries in Rails?

Detect N+1 queries in Rails by inspecting SQL logs during console-based data inspection to identify repeated query patterns and isolate the root cause efficiently.

What's the best way to profile Rails performance bottlenecks?

Profile Rails performance bottlenecks using targeted performance profiling techniques to analyze routing, middleware, and database queries for reproducible investigation workflows.

How do I debug Rails issues in production-like environments safely?

Debug Rails issues in production-like environments safely by following specific gotchas and safe debugging practices that ensure breakpoint usage causes minimal disruption to the system.

Can I use Rails console for data inspection and breakpoint debugging?

Use Rails console for data inspection and breakpoint debugging to reproduce issues, tail development logs, and triage problems across development and test scenarios.

How do I triage Rails logs for quick issue isolation?

Triage Rails logs for quick issue isolation by analyzing log outputs to trace application behavior, pinpoint SQL anomalies, and isolate root causes during reproduction.

Does this approach help with Rails migration and schema debugging?

This approach helps with Rails migration and schema debugging by providing targeted techniques to inspect database structures and resolve schema-related issues during development.