node-inspect-debugger
Debug Node.js via --inspect + Chrome DevTools Protocol.
npx skills add HezaoHezao/poirot --skill node-inspect-debugger --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Node.js Inspect Debugger ## Overview When `console.log` isn't enough, drive Node's built-in V8 inspector programmatically from the terminal. Real breakpoints, step in/over/out, call-stack walking, scope dumps, and arbitrary expression evaluation. **Prefer `node inspect` first.** It's always available and the REPL is fast. ## When to Use - A Node test fails and you need to see intermediate state - A Node process crashes or behaves wrong and you want to inspect state - You need to inspect a value in a closure that `console.log` can't reach - Perf: attach to a running process to capture a CPU profile or heap snapshot **Don't use for:** things `console.log` solves in under a minute. ## Quick Reference: `node inspect` REPL Launch paused on first line: ```bash node inspect path/to/script.js # or with tsx node --inspect-brk $(which tsx) path/to/script.ts ``` The `debug>` prompt accepts: | Command | Action | |---------|--------| | `c` | continue | | `n` | next line (step over) | | `s` | step into | | `o` | step out | | `sb('file.js', line)` | set breakpoint | | `cb('file.js', line)` | clear breakpoint | | `watch('expr')` | watch expression | | `exec('expr')` | evaluate in paused frame |
- Overview
- When to Use
- Quick Reference: node inspect REPL
- Scriptable CDP via chrome-remote-interface
- Attaching to a Running Process
- CPU Profile
- Pitfalls
node inspect path/to/script.js
or with tsx
node --inspect-brk $(which tsx) path/to/script.ts
Install
npm install chrome-remote-interface
Launch node with inspect
node --inspect-brk=9229 path/to/script.js &
Attach via script
node -e "
const CDP = require('chrome-remote-interface');What does the node-inspect-debugger skill do?
Debug Node.js via --inspect + Chrome DevTools Protocol.
How do I install it?
Run `npx skills add HezaoHezao/poirot --skill node-inspect-debugger --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From HezaoHezao/poirot, a repository with 139 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
