node-inspect-debugger

Drive the V8 inspector to debug Node.js programs with breakpoints and variable inspection.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Node.js failures are hard to diagnose when console.log is too shallow, so breakpoints and paused-state inspection are needed to understand the real control flow and values at the moment things go wrong.

Core Features & Use Cases

  • Interactive breakpoint debugging (node inspect): Step through code, set/clear breakpoints, inspect call stacks, and evaluate expressions in the paused frame to pinpoint the exact moment and value that caused the issue.
  • Programmatic CDP automation (chrome-remote-interface): Script breakpoints and gather scope/local/closure state automatically for repeatable investigations and non-interactive debugging workflows.
  • Debugging real runtimes (including inspector attach): Attach to running Node processes, debug Ink/tsx-based UIs, and pause execution in the right worker to inspect state that may not be observable via logs.

Use case example: a Vitest test or TUI render crashes intermittently, and you need to pause execution on a specific file/line to inspect React/Ink props, hooks state, and async timing issues rather than guessing from logs.

Quick Start

Start your debug session by running node with the inspector paused on entry for your target, then attach and set a breakpoint at the suspicious file and line.

Frequently Asked Questions about node-inspect-debugger

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

FAQPage Schema
How do I debug Node.js with breakpoints instead of console.log?

Debug Node.js with breakpoints by driving the V8 inspector via node inspect or Chrome DevTools Protocol from the terminal, allowing paused execution and variable inspection to pinpoint exact failure moments.

Can I attach a debugger to a running Node.js process to inspect state?

Yes, you can attach a debugger to running Node.js processes using inspector URL targeting and --inspect-brk patterns, enabling paused execution to inspect state that may not be observable via logs.

What's the best way to debug Ink and tsx UI crashes in Node.js?

Debug Ink and tsx UI crashes by pausing execution on a specific file and line to inspect React/Ink props, hooks state, and async timing issues rather than guessing from logs.

Does programmatic CDP automation support scripted breakpoints for Node.js?

Yes, programmatic Chrome DevTools Protocol automation via chrome-remote-interface supports scripting breakpoints and gathering scope, local, and closure state automatically for repeatable non-interactive debugging workflows.

How do I step through code and inspect call stacks in a paused Node.js frame?

Use node inspect interactive sessions to step through code with step, cont, next, and step into/out commands, inspect call stacks, and evaluate expressions in the paused frame.