debugging

Diagnose JavaScript/TypeScript errors using systematic debugging workflows and tools.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/iannil/code-coder --skill debugging-iannil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/iannil/code-coder/tree/main/packages/ccode/src/skill/builtin/debugging
Command: npx skills add https://github.com/iannil/code-coder --skill debugging-iannil

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to identifying, diagnosing, and resolving bugs and errors in code, improving software quality and stability.

Core Features & Use Cases

  • Systematic Debugging Workflow: Follows a structured approach from problem definition to fix verification.
  • Common Error Patterns: Offers solutions for frequent JavaScript/TypeScript errors like TypeErrors, ReferenceErrors, and Promise rejections.
  • Tooling & Techniques: Covers essential debugging tools such as TypeScript type checking, Git bisect, network inspection, and performance profiling.
  • Use Case: When encountering an unexpected runtime error, use this Skill to systematically trace the issue using the provided workflow and code examples.

Quick Start

Use the debugging skill to help me understand the 'TypeError: Cannot read property' error.

Frequently Asked Questions about debugging

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

FAQPage Schema
How do I fix a TypeError in JavaScript or TypeScript?

To fix a JavaScript or TypeScript TypeError, apply common error pattern analysis to identify undefined variables. Use subtraction debugging and minimal reproduction to isolate the exact variable causing the runtime exception.

What is the best way to trace a code regression using Git?

The best way to trace a code regression is using Git bisect. This technique systematically checks commits to pinpoint the exact change that introduced the bug, verifying the fix through a structured troubleshooting workflow.

How do I troubleshoot a Promise rejection not working as expected?

To troubleshoot a Promise rejection not working, implement proper error handling and utilize network inspection to trace asynchronous calls. Logging strategies help capture the rejection event and identify the failed operation.

How do I find memory leaks in JavaScript applications?

To find memory leaks in JavaScript applications, use performance profiling and memory leak detection techniques. Analyze runtime snapshots to identify unreferenced objects and verify the fix with subtraction debugging.

What is subtraction debugging and how does it help resolve errors?

Subtraction debugging is a technique to resolve errors by systematically removing code to isolate the problem. It creates a minimal reproduction of the issue, ensuring the troubleshooting workflow targets the specific defect.