Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
actionYesDebug action to perform
portNoDBGp port (default: 9000)
timeoutNoTimeout for capture_error in ms
fileNoFile path for breakpoint/fix/source
lineNoLine number
conditionNoBreakpoint condition
breakpoint_idNoBreakpoint ID for removal
contextNoVariable context: 0=local, 1=global
expressionNoExpression to evaluate
radiusNoSource context radius
originalNoOriginal line for apply_fix
replacementNoReplacement line for apply_fix
errorNoError object for analyze_error

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TrueCrimeDev/ahk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server