node-inspect-debugger

Debug Node.js applications via the V8 inspector and Chrome DevTools Protocol.

2|Updated May 10, 2026
One-click install
npx skills add https://github.com/freedomw1987/tree_monstor --skill node-inspect-debugger-freedomw1987
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: node-inspect-debugger
Source: https://github.com/freedomw1987/tree_monstor/tree/main/skills/software-development/node-inspect-debugger
Command: npx skills add https://github.com/freedomw1987/tree_monstor --skill node-inspect-debugger-freedomw1987

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When console.log debugging is insufficient for Node.js applications—such as when you need to inspect closure-scoped variables, step through async execution flows, or debug pre-render state in TUI apps—this skill eliminates time-consuming trial-and-error by providing direct access to Node's built-in V8 inspector and Chrome DevTools Protocol.

Core Features & Use Cases

  • Interactive CLI Debugging: Use the zero-install node inspect REPL to set breakpoints, step through code, walk call stacks, and inspect local/closure scope variables for ad-hoc debugging sessions.
  • Automated CDP Debugging: Script breakpoint setup, state collection, and non-interactive debugging via chrome-remote-interface for agent loops, complex reproduction steps, or bulk state capture across runs.
  • Hermes Ecosystem Support: Includes pre-built workflows for debugging Ink-based TUI components, _SlashWorker child processes, and Vitest test runs, with guidance for attaching to running processes and capturing performance profiles.
  • Use Case Example: If your Hermes ui-tui component renders incorrect state, use this skill to pause execution pre-render and inspect closure variables that console.log cannot reach without code patching.

Quick Start

Use the node-inspect-debugger skill to attach a debugger to your running Node.js script, set a breakpoint at the line where the unexpected value is generated, and inspect the local and closure scope variables to identify the root cause of the issue.

Frequently Asked Questions about node-inspect-debugger

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

FAQPage Schema
How do I inspect closure-scoped variables in Node.js without adding console.log statements?

Inspect closure-scoped variables in Node.js by using the built-in V8 inspector via the `node inspect` REPL to set breakpoints, pause execution, and directly view local and closure scope variables without modifying source code.

Can I debug Vitest test runs using the Chrome DevTools Protocol?

Yes, you can debug Vitest test runs using the Chrome DevTools Protocol (CDP). This skill provides pre-built workflows and scriptable CDP interfaces for attaching to Node processes to step through test execution.

What is the best way to automate breakpoint setup and state collection for Node.js debugging?

Automate Node.js debugging by scripting the Chrome DevTools Protocol using `chrome-remote-interface`, enabling automated breakpoint setup, state collection, and non-interactive debugging for agent loops and complex reproductions.

How do I debug pre-render state in an Ink-based TUI application?

Debug pre-render state in an Ink-based TUI application by using the V8 inspector to attach to the running Node.js process, set a breakpoint before the render call, and inspect the application's closure variables directly.

Do I need to install additional dependencies to use the node inspect REPL for ad-hoc debugging?

No, you do not need to install additional dependencies for ad-hoc debugging. The `node inspect` REPL is a zero-install built-in Node.js feature for stepping through code, walking call stacks, and inspecting scopes immediately.