node-inspect-debugger

Debug Node.js applications with breakpoints and Chrome DevTools Protocol.

2|7|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill node-inspect-debugger-humanerd-drew
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: node-inspect-debugger
Source: https://github.com/humanerd-drew/opencode-drewgent/tree/main/skills/software-development/node-inspect-debugger
Command: npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill node-inspect-debugger-humanerd-drew

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chrome-remote-interface, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides solutions for debugging Node.js applications, enabling developers to diagnose issues programmatically and interactively.

Core Features & Use Cases

  • Interactive Debugging: Use node inspect and chrome-remote-interface for step-by-step debugging.
  • Breakpoints: Set breakpoints at file, line, or function level.
  • Expression Evaluation: Evaluate expressions in the paused frame.
  • CPU and Heap Profiling: Capture CPU profiles and heap snapshots for performance analysis.
  • Use Case: When a Node.js application crashes or behaves unexpectedly, this Skill helps trace the issue to its source.

Quick Start

To debug a script, start with:

node --inspect-brk script.js

Frequently Asked Questions about node-inspect-debugger

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

FAQPage Schema
How do I set breakpoints to debug a Node.js application?

To debug a Node.js application, you can set breakpoints at the file, line, or function level using the built-in `node inspect` command. Start by running your script with `node --inspect-brk script.js` to pause execution and step through code interactively.

Can I evaluate expressions in a paused frame during Node.js debugging?

Yes, you can evaluate expressions directly within a paused frame during Node.js debugging. This allows you to inspect variable values and test logic interactively while execution is halted at a breakpoint.

What is the best way to capture CPU profiles and heap snapshots in Node.js?

The best way to capture CPU profiles and heap snapshots in Node.js is by using the Chrome DevTools Protocol via `chrome-remote-interface`. This enables automated, scriptable performance profiling to analyze bottlenecks and memory usage.

Does Node.js debugging work with the Chrome DevTools Protocol for automated testing?

Yes, Node.js debugging works seamlessly with the Chrome DevTools Protocol for automated testing. Using the `chrome-remote-interface` dependency, you can script debugging actions like pausing execution, setting breakpoints, and inspecting variables programmatically.

Why do I need to use `--inspect-brk` to start debugging my Node.js script?

You need to use `--inspect-brk` to start debugging a Node.js script because it pauses execution on the first line before any code runs. This ensures the debugger is attached immediately, allowing you to set early breakpoints and trace issues from the start.