dbg

Debug Node.js, Bun, and native applications via LLDB/DAP with breakpoints and inspection.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Virgile-Eratel/skills --skill dbg-virgile-eratel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dbg
Source: https://github.com/Virgile-Eratel/skills/tree/main/dbg
Command: npx skills add https://github.com/Virgile-Eratel/skills --skill dbg-virgile-eratel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you diagnose runtime bugs by letting you pause execution, inspect state, and iterate quickly while reproducing issues in JavaScript, TypeScript, or native code.

Core Features & Use Cases

  • Breakpoints & conditional control: Stop at specific source locations (including conditional and hit-count breakpoints) to narrow down the cause of failures.
  • Deep inspection and evaluation: Inspect variables, stack frames, source context, and evaluate expressions (including awaited inspection in JS/TS) at the exact moment the bug appears.
  • Targeted debugging workflows: Support launching and attaching to running processes, logpoints for non-paused tracing, and native debugging via LLDB/DAP.

Quick Start

Launch your app with an initial breakpoint so you can inspect locals and stack right away: dbg launch --brk node app.js

Frequently Asked Questions about dbg

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

FAQPage Schema
How do I debug Node.js or Bun applications from the command line?

Debug Node.js and Bun applications from the CLI by launching or attaching to processes. Pause execution with breakpoints, inspect runtime state, evaluate expressions, and apply live code hotpatching.

Can I attach a debugger to an already running JavaScript process?

Yes, you can attach a debugger to running processes via CDP for V8 or WebKit for Bun. Once attached, set conditional breakpoints, inspect stack frames, and trace behavior using logpoints without pausing.

What is the best way to inspect variables and stack frames during TypeScript debugging?

Inspect variables and stack frames by setting breakpoints at specific source locations. Pause execution to view locals, source context, and evaluate expressions, including awaited inspection for async TypeScript code.

Does this debugging approach support native code alongside JavaScript?

Yes, native code debugging is supported via LLDB and DAP. You can investigate runtime bugs across both JavaScript environments and native code, controlling flow and inspecting state across different runtime targets.

How do logpoints work for tracing runtime behavior without pausing execution?

Logpoints trace runtime behavior by logging values at specific source locations without pausing execution. Set hit-count conditions to narrow down failures and monitor state changes dynamically while the application runs.

Can I hotpatch JavaScript code during a live debugging session?

Yes, live code hotpatching is supported for JS and TS. Apply patches during a debugging session to modify runtime behavior instantly, test fixes quickly, and iterate while reproducing issues.