# Changelog

All notable changes to the rdbg Claude Code plugin.

## [Unreleased]

### Added

- `inspect_locals` MCP tool — returns parameter and stack-local
  information for the procedure containing the paused frame's RIP.
  Reads the EXE's `.debug` TD32/TDS section (Borland CodeView 4
  derivative; magic `FB09`); target must be built with `-V`
  ("Place debug information in EXE"). Auto-walks past
  kernel32/wil DLL frames at `DebugBreak()` to land on user code.
  Surfaces all four version-gating outcomes (`tdsOk` /
  `tdsNoDebugSection` / `tdsVersionMismatch` / `tdsCorrupt`) as
  structured wire errors with `version_warning` + `fallback_hint`
  + `diagnostic_command`. Skill updates in
  `delphi-debugging-workflow` and `delphi-rtti-inspection` teach
  the agent to use it; `delphi-bug-hunter` agent gains the tool.

## [0.1.0] — Unreleased

Initial release. Tracks `rdbg` 0.2.

### Added

- MCP server (`rdbg-mcp.exe`) wrapping the rdbg JSON-RPC wire protocol
  for use as a Claude Code subprocess. Stdio transport, ~33 tools
  spanning process control, breakpoints, stepping, RTTI inspection,
  VCL discovery, GUI capture, input injection, and exception
  filtering.
- Auto-spawn of `rdbgd64.exe` if not already running, with detached
  spawn so the daemon outlives Claude Code restarts. Session
  pre-check refuses to spawn from non-interactive contexts.
- Five skills:
  - `delphi-debugging-workflow` — primary debugging rhythm.
  - `exception-triage` — first-chance vs second-chance, frame walking.
  - `gui-bug-reproduction` — demo-and-record vs autonomous repro.
  - `delphi-rtti-inspection` — `inspect_object` + `read` walking.
  - `vcl-self-discovery` — bootstrap UI tree from RTTI, fuzz it.
- `delphi-bug-hunter` subagent for autonomous bug investigation.
- Slash commands: `/rdbg:status`, `/rdbg:start-daemon`,
  `/rdbg:install-help`.
- Wire commands added in this release (require rdbg 0.2+):
  `find_vcl_for_hwnd`, `get_main_form`, `enumerate_vcl_tree`,
  `set_text_field`, `screenshot_desktop`, `set_exception_filter`,
  and a `filter` parameter on the existing event push.

### Out of scope (v1)

- SSH-to-remote-Windows debugging.
- Cross-platform `rdbg-mcp` builds (darwin, linux).
- `inspect_locals`, expression evaluator, data watchpoints.
