react-debugging-advanced

Diagnose React applications using DevTools profiling, error boundaries, and debugging hooks.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/gmackie/agent-skills --skill react-debugging-advanced-gmackie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react-debugging-advanced
Source: https://github.com/gmackie/agent-skills/tree/main/skills/react-debugging-advanced
Command: npx skills add https://github.com/gmackie/agent-skills --skill react-debugging-advanced-gmackie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Troubleshooting complex React applications—slow renders, silent errors, memory leaks, and unexplained re-renders—is difficult without structured tooling. This Skill provides ready-to-use patterns for instrumenting React apps with error boundaries, profilers, custom debug hooks, and API monitoring. ## Core Features & Use Cases - Error Boundaries & Logging: Catch render errors with a full-featured ErrorBoundary component that logs stack traces and component stacks to external services. - Performance Profiling: Wrap components in React Profiler to detect slow renders exceeding one 60fps frame, plus Redux DevTools configuration with action and state sanitizers. - Custom Debug Hooks: Track render counts, prop changes (why-did-you-update), memory usage, and cleanup leaks with reusable hooks. - Use Case: A production React app intermittently freezes. Use this Skill to add Profiler wrappers, memory monitoring hooks, and axios interceptors to pinpoint the slow component and leaking timer. ## Quick Start Use the react-debugging-advanced skill to add error boundaries and performance profiling to my React app so I can find the slow component.

Frequently Asked Questions about react-debugging-advanced

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

FAQPage Schema
How do I debug slow React component renders?▼

Wrap components in React's Profiler component with an onRender callback that logs actualDuration per commit. Renders exceeding 16ms (one frame at 60fps) are flagged as slow, helping you locate the bottleneck component.

How to find why a React component keeps re-rendering?▼

Use a why-did-you-update style hook that compares previous and current props with useRef and logs which props changed between renders. Changed object or function references are the usual cause of unnecessary re-renders.

Does React error boundary catch async errors?▼

No, error boundaries only catch errors during rendering, in lifecycle methods, and in constructors. Async errors in event handlers, promises, or setTimeout require try/catch blocks or window error listeners for handling.

How do I detect memory leaks in React applications?▼

Monitor performance.memory in development with an interval hook that logs usedJSHeapSize growth, and register cleanup functions for timers, subscriptions, and event listeners in a leak-detection hook that runs them on unmount.

Why is React DevTools not showing my components?▼

React DevTools only works with development builds of React and requires the browser extension to be installed. Verify __DEV__ mode is enabled in your bundler config and that the extension matches your React version.