Interactive Debugging (WinDbg/CDB REPL)

Orchestrates CDB interactive debugging sessions via run_command and send_command_input.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/JasonVene/CC_MainDev --skill interactive-debugging-windbg-cdb-repl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Interactive Debugging (WinDbg/CDB REPL)
Source: https://github.com/JasonVene/CC_MainDev/tree/main/_archive/antigravity/.agent/skills/interactive_debugging
Command: npx skills add https://github.com/JasonVene/CC_MainDev --skill interactive-debugging-windbg-cdb-repl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a workflow and command-reference to attach to and drive the Microsoft CDB debugger interactively using agent tools like run_command and send_command_input, enabling agent-driven step-through debugging.

Core Features & Use Cases

  • Interactive control of cdb.exe via run_command and send_command_input to drive debugging sessions.
  • Step-by-step execution, breakpoints management, and state inspection for Windows applications.
  • End-to-end workflow from launching the debugger to cleanup and recovery in case of hangs or lost CommandId, with guidance on common tasks like inspecting locals, memory, and stacks.

Quick Start

Launch the debugger with the build_env wrapper, then drive it interactively by sending commands to cdb through run_command and send_command_input.

Frequently Asked Questions about Interactive Debugging (WinDbg/CDB REPL)

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

FAQPage Schema
How do I automate interactive debugging with CDB or WinDbg?

Interactive debugging is driven by orchestrating the CDB debugger through an agent, using run_command to launch the process and send_command_input to issue commands like g, t, bp, dv, and q for execution control and state inspection.

What WinDbg commands can I send to inspect application state during an automated debugging session?

During an automated debugging session, you can send commands like bp for breakpoints, t for stepping, dv to inspect locals, and q to quit, allowing the agent to manage execution and inspect memory and stacks interactively.

Does this approach require a specific wrapper to launch the CDB debugger?

Yes, launching the CDB debugger through a build_env wrapper is required to initialize the environment before the agent starts driving the interactive debugging session with run_command and send_command_input.

What is the best way to handle a hung CDB debugging session or lost CommandId?

The best way to handle a hung CDB session or lost CommandId is to follow the skill's end-to-end workflow for cleanup and recovery, ensuring the debugger process is terminated and the environment is reset for a new session.

Can I use this method for incident investigation on Windows applications?

Yes, you can use this method for incident investigation on Windows applications, as it supports step-by-step execution, memory analysis, and state inspection to diagnose issues during development and post-incident.