AHK_Debug_DBGp
Debug AutoHotkey v2 scripts via DBGp protocol to capture errors, analyze issues, and apply automated fixes during development.
Instructions
AutoHotkey v2 debugger via DBGp protocol. Enables autonomous debugging: capture errors, analyze them, and auto-apply fixes.
Actions:
start: Start DBGp listener (waits for AHK /Debug connection)
stop: Stop DBGp listener
status: Get connection status
run: Continue execution
step_into/step_over/step_out: Step debugging
capture_error: Wait for next error with full context
analyze_error: Build analysis prompt from error
apply_fix: Auto-apply code fix to file
list_errors/clear_errors: Manage error queue
get_source: Get source lines around a line
breakpoint_set/remove/list: Manage breakpoints
variables_get: Get variables (context: 0=local, 1=global)
evaluate: Evaluate expression
stack_trace: Get call stack
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Debug action to perform | |
| port | No | DBGp port (default: 9000) | |
| timeout | No | Timeout for capture_error in ms | |
| file | No | File path for breakpoint/fix/source | |
| line | No | Line number | |
| condition | No | Breakpoint condition | |
| breakpoint_id | No | Breakpoint ID for removal | |
| context | No | Variable context: 0=local, 1=global | |
| expression | No | Expression to evaluate | |
| radius | No | Source context radius | |
| original | No | Original line for apply_fix | |
| replacement | No | Replacement line for apply_fix | |
| error | No | Error object for analyze_error |