New advertisers: 50% off your first month with code FIRSTMONTHSee slots
chromedevtools avatar

Memory Leak Debugging

Diagnoses JavaScript and Node.js memory leaks by comparing heap snapshots through Chrome DevTools MCP memory tools.

skills.sh installs
3.7K
GitHub stars
58.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the leak workflow: capturing baseline, target, and final heap snapshots, comparing them, then inspecting retainers and dominator chains
  • Includes categorized filters for detached DOM nodes, event-handler retention, closure-retained contexts, and console-retained objects
  • Enforces working from MCP summaries rather than reading raw .heapsnapshot files, and closing each loaded snapshot with close_heapsnapshot
  • Requires the server to run with --memoryDebugging for advanced snapshot tools, and asks before nulling intentional detached-DOM caches

Install

$ npx -y skills add chromedevtools/chrome-devtools-mcp --skill memory-leak-debugging -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Memory Leak Debugging

This skill provides expert guidance and workflows for finding, diagnosing, and fixing memory leaks in JavaScript and Node.js applications using Chrome DevTools MCP tools.

Prerequisites

Advanced memory debugging tools (compare_heapsnapshots, get_heapsnapshot_details, etc.) are only available when the server is started with the --memoryDebugging flag. First check if these tools are available; if not, try to read the MCP configuration file to check if --memoryDebugging is enabled.

Core Principles

Details

Repository
github.com/chromedevtools/chrome-devtools-mcp
Categories
Debugging, Frontend & UI Code
First seen
Jun 3, 2026

More from chromedevtools/chrome-devtools-mcp

All 6

Similar to Memory Leak Debugging

More Debugging