node-inspect-debugger

Debug Node.js processes via --inspect and Chrome DevTools Protocol from the terminal.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/TylerSimons1127/vibe --skill node-inspect-debugger-tylersimons1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: node-inspect-debugger
Source: https://github.com/TylerSimons1127/vibe/tree/main/skills/software-development/node-inspect-debugger
Command: npx skills add https://github.com/TylerSimons1127/vibe --skill node-inspect-debugger-tylersimons1127

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chrome-remote-interface.

What problem does it solve? When console.log is not enough, this Skill lets you drive Node's built-in V8 inspector programmatically to set real breakpoints, step through code, walk call stacks, dump local and closure scopes, and evaluate arbitrary expressions in paused frames. ## Core Features & Use Cases - Interactive REPL Debugging: Use the built-in node inspect CLI to set breakpoints, step in/over/out, watch expressions, and drop into a scoped REPL with zero installation. - Programmatic CDP Automation: Script breakpoint management, scope capture, CPU profiles, and heap snapshots via chrome-remote-interface for non-interactive or agent-driven debugging. - Use Case: A Vitest test in an Ink-based TUI fails intermittently. Launch it with node --inspect-brk, attach the debugger, set a breakpoint in the suspect component, and inspect React state and closure variables at the exact failure point. ## Quick Start Ask the agent to run your failing Node script with --inspect-brk, attach node inspect, set a breakpoint at the suspect line, and print the local variables when it pauses.

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 a Node.js script with breakpoints from the terminal?▼

Run `node inspect script.js` to launch paused on the first line, then use `sb('file.js', 42)` to set breakpoints, `cont` to continue, and `repl` to evaluate expressions in the current scope. No extra installation is required since the inspector is built into Node.

How to attach a debugger to an already running Node process?▼

Send SIGUSR1 to the process with `kill -SIGUSR1 <pid>` to enable the inspector, then attach with `node inspect -p <pid>` or via the WebSocket URL printed by Node. You can list inspectable targets at http://127.0.0.1:9229/json/list.

node inspect vs chrome-remote-interface for Node debugging?▼

node inspect is built-in and best for quick interactive poking via its REPL. chrome-remote-interface is better when you need to automate many breakpoints, capture scope state across runs, or collect CPU profiles and heap snapshots non-interactively.

Why do breakpoints hit wrong lines in TypeScript files?▼

Breakpoints bind to the emitted JavaScript, not the .ts source. Either set breakpoints in the built dist/*.js files, or run Node with --enable-source-maps and use a CDP client that follows sourcemaps, since the node inspect CLI does not.

Can I debug child processes spawned by a Node parent?▼

The --inspect flag on a parent does not inspect its children. Use NODE_OPTIONS='--inspect-brk' node parent.js to propagate the inspector to every child; Node auto-increments ports so each child gets a unique one.

When should I not use breakpoint-driven Node debugging?▼

Avoid it for problems console.log solves in under a minute, since breakpoint sessions are heavier to set up. Also use python-debugpy instead for Python child processes such as PTY bridge workers, which the V8 inspector cannot attach to.