debugging-strategies

Diagnose bugs and performance issues using systematic debugging workflows and profiling tools.

4|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle --skill debugging-strategies-ki2pixel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debugging-strategies
Source: https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle/tree/main/.windsurf/skills/debugging-strategies
Command: npx skills add https://github.com/ki2pixel/After-Effects-Scripts-Plugins-Bundle --skill debugging-strategies-ki2pixel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guesswork and random code changes. This Skill replaces that with a structured scientific method—reproduce, gather information, hypothesize, test—so you can find root causes faster across any language or stack. ## Core Features & Use Cases - Systematic Process: Four-phase workflow (reproduce, gather info, hypothesize, verify) with checklists for each stage. - Language-Specific Tooling: Ready-to-use debugger setups for JavaScript/TypeScript (Chrome DevTools, VS Code launch.json), Python (pdb, breakpoint, cProfile), and Go (Delve, pprof). - Advanced Techniques: Git bisect for regressions, differential debugging, memory leak detection, and patterns for intermittent, performance, and production bugs. - Use Case: A Node.js API intermittently returns wrong totals in production. Use the intermittent-bug pattern to add timing logs, then use git bisect to isolate the regression to a specific commit. ## Quick Start Ask the AI to help debug a specific error by pasting the stack trace and describing the expected versus actual behavior.

Frequently Asked Questions about debugging-strategies

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

FAQPage Schema
How do I debug Node.js applications in VS Code?▼

Configure a launch.json file with type 'node', request 'launch', and point the program field to your entry file. You can then set breakpoints, inspect variables, and step through code directly in the editor.

How to find which commit introduced a bug with git?▼

Use git bisect: mark the current commit as bad and a known working commit as good, then git checks out middle commits for you to test. Marking each as good or bad narrows the range until the offending commit is found.

What Python tools help with debugging and profiling?▼

Use the built-in breakpoint() function or pdb for interactive debugging, and cProfile with pstats to profile performance and identify the slowest functions. The ipdb package provides an enhanced debugger interface.

How do I detect memory leaks in JavaScript applications?▼

Take heap snapshots in Chrome DevTools before and after the suspected action, then compare them to find retained objects. In Node.js, monitor process.memoryUsage() and generate heap dumps with v8.writeHeapSnapshot().

Why are intermittent bugs so hard to reproduce?▼

Intermittent bugs usually stem from race conditions, timing dependencies, or uncontrolled external state. Add extensive timing and state-transition logging, then stress test with varied timing and load to make the failure reproducible.

When should I use a debugger instead of console.log?▼

Use a debugger when you need to inspect complex state, step through execution flow, or examine call stacks without modifying code. Console logging works for quick value checks but becomes unwieldy for multi-layered logic.