com um clique
node-inspect-debugger
Terminal-based Node.js debugging via V8 inspector protocol
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Terminal-based Node.js debugging via V8 inspector protocol
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Decompose and route work through multi-agent Kanban systems
Task lifecycle management and workspace handoff for Kanban workers
Python debugging with pdb, debugpy, and remote attach
Root-cause investigation methodology before applying fixes
Enforce RED-GREEN-REFACTOR TDD cycle
Extract YouTube transcripts and transform into structured content
| name | node-inspect-debugger |
| description | Terminal-based Node.js debugging via V8 inspector protocol |
| alwaysInclude | false |
| requiredBins | ["node"] |
| platforms | ["darwin","linux"] |
| version | 1.0.0 |
| tenantIds | [] |
Debug Node.js applications using the built-in V8 inspector protocol from the terminal. This skill covers launching debug sessions, setting breakpoints, inspecting state, and diagnosing issues without a GUI debugger.
# Inspect mode — pauses at first line
node --inspect-brk script.js
# Inspect mode — runs immediately, attach later
node --inspect script.js
# Specific port
node --inspect=0.0.0.0:9230 script.js
# Debug a test runner
node --inspect-brk node_modules/.bin/jest --runInBand
Query the inspector endpoint directly:
# List debuggable targets
curl -s http://127.0.0.1:9229/json/list | python3 -m json.tool
# Get the WebSocket debugger URL
curl -s http://127.0.0.1:9229/json/list | python3 -c "import sys,json; print(json.load(sys.stdin)[0]['webSocketDebuggerUrl'])"
# Launch the built-in CLI debugger
node inspect script.js
| Command | Action |
|---|---|
c / cont | Continue execution |
n / next | Step over |
s / step | Step into |
o / out | Step out |
sb('file.js', line) | Set breakpoint |
cb('file.js', line) | Clear breakpoint |
repl | Enter REPL to evaluate expressions |
exec('expr') | Evaluate expression in current scope |
bt / backtrace | Print call stack |
list(n) | Show source around current line |
watch('expr') | Add watch expression |
watchers | Show all watch expressions |
const inspector = require('node:inspector');
const session = new inspector.Session();
session.connect();
// Enable debugging domains
session.post('Debugger.enable');
session.post('Runtime.enable');
// Set breakpoint by URL
session.post('Debugger.setBreakpointByUrl', {
lineNumber: 10,
url: 'file:///path/to/script.js'
});
// Evaluate expression
session.post('Runtime.evaluate', {
expression: 'myVariable',
returnByValue: true
}, (err, result) => {
console.log(result);
});
# Generate heap snapshot (sends SIGUSR2 or use inspector)
node --inspect -e "
const v8 = require('v8');
const fs = require('fs');
const snap = v8.writeHeapSnapshot();
console.log('Heap snapshot written to', snap);
"
# CPU profiling
node --prof script.js
node --prof-process isolate-*.log > profile.txt
# Start with increased heap reporting
node --inspect --max-old-space-size=512 --trace-gc script.js
# Enable full async stack traces
node --inspect --async-stack-traces script.js
# Enable verbose Node.js debug output
NODE_DEBUG=http,net,tls node script.js
# Enable V8 flags
node --v8-options | grep -i debug
--inspect-brk when you need to set breakpoints before code runs.--runInBand with Jest to avoid multi-process debugging complexity.node inspect over GUI tools for terminal-only environments.NODE_DEBUG for module-level tracing before attaching a full debugger.