node-inspect-debugger

Automate Node.js debugging with node inspect and Chrome DevTools Protocol.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill offers powerful tools to debug Node.js applications using command-line tools and Chrome DevTools Protocol (CDP).

Core Features & Use Cases

  • Breakpoint Management: Set breakpoints, step through code, and evaluate expressions.
  • Running Process Inspection: Attach to a running process to capture CPU profiles and heap snapshots.
  • Automation and Scripting: Script breakpoints and debugging logic from Node or Python scripts.

Quick Start

To start debugging a script with node inspect, use the following command:

node inspect path/to/script.js

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 application from the command line?

Debug a Node.js application from the command line by running 'node inspect path/to/script.js' to set breakpoints, step through code, and evaluate expressions. This approach enables interactive code evaluation and post-mortem analysis directly within your development environment.

How does the Chrome DevTools Protocol work with Node.js for running process inspection?

The Chrome DevTools Protocol works with Node.js by attaching to a running process to capture CPU profiles and heap snapshots. Using the 'chrome-remote-interface', you can automate debugging logic and script breakpoints for performance optimization.

Can I script breakpoints and debugging logic for Node.js using Python?

Yes, you can script breakpoints and debugging logic from Node or Python scripts. This automation applies predefined scripts using 'node inspect' and the Chrome DevTools Protocol to streamline interactive code evaluation and post-mortem analysis.

Do I need to know the Chrome DevTools Protocol to use node inspect for debugging?

Yes, using the Chrome DevTools Protocol requires knowledge of Node.js execution and the ability to use 'chrome-remote-interface'. This knowledge is necessary to effectively manage breakpoints, capture heap snapshots, and perform performance optimization.

What is the best way to capture a heap snapshot from a running Node.js process?

The best way to capture a heap snapshot is by attaching to the running process using the Chrome DevTools Protocol. This allows you to inspect the process, capture CPU profiles, and perform post-mortem analysis for performance optimization.