helsmy / autohotkey-debug-adapter

Simple debug adapter for AutoHotKey.
https://marketplace.visualstudio.com/items?itemName=helsmy.autohotkey-debug
GNU Lesser General Public License v3.0
10 stars 4 forks source link
autohotkey debugger

AutoHotKey Debug

Visual Studio Marketplace Installs

Simple debug adapter for AutoHotKey implemented by AutoHotKey.

Features

Experimental Feature

Using

  1. Open an AutoHotKey source file.
  2. For most simple way, press f5 to debug it.
  3. If you want to start at a specific setting. Switch to the debug viewlet.
  4. Press the green 'play' button, if vs code doesn't find launch.json, it will creat one for you. Save it and switch back to ahk file you open.
  5. Press the green button again, debugger will start.

Debug

Rule of change varibles

Supported Settings of Launch.json

Known Issues

An early version which needs test. Use it at you own risk.

  1. The max number of object children to be display is 99.

Build

From 0.7.0 version, extension use a compiled version of debug adapter for a better experence. If any changes of DA is needed, the extension must be built again.

  1. This project use yarn, so first step is: yarn install
  2. Set ahk2exe compile option Base File to autohotkey v1.36 or above v1 version.
  3. yarn run package
    or if just compile debug adapter (located in bin\debugAdapter.exe).
    yarn run precompile

Furture Plan