Simple debug adapter for AutoHotKey implemented by AutoHotKey.
- Basic debug functions. Step into, step out, breakpoints etc.
- Show call stack and varibles.
- change varibles in debugging
- Debug ahkv2 or H version since debug protocol do not change.(by set AhkExecutable path to corresponding runtime path in launch.json)
- Open an AutoHotKey source file.
- For most simple way, press f5 to debug it.
- If you want to start at a specific setting. Switch to the debug viewlet.
- 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.
- Press the green button again, debugger will start.
- Basically, it is the same grammar with ahk
quoted string
: such as "This is a quoted string."
=> type "string"number
: support int, float and hex.
eg.12
,12.123
,0xff
=> type "integer"(12), "float"(12.123), "integer"(255)others
: any other string is treated like that it assign to a varible with=
in AHKv1.
=> type "string"
type
: always ahkdbg.request
: always launch.name
: name of a specific setting.program
: script file to be debugged(by default is file under editing).stopOnEntry
: stop on entry or not.captureStreams
: capture io streams or not.AhkExecutable
: change Default Execute Path(by default is automaticlly acquired through registry, usually isC:\Program Files\Autohotkey\AutoHotkey.exe
).port
: The port on which to listen for XDebug (default: 9005)
An early version which needs test. Use it at you own risk.
Unsupport for non-ascii characters.(still has bugs about set varibles with non-ascii string)Breakpoint may can't set or cancel(solution: fixed)- H version can be debugged, but multithread is no supported
- The max number of object children to be display is 99.
- Support Evaluate For Hovers
- Support debug console
- Change value of varible in debugging
- conditional breakpoint (experimental feature, soft implementation)
- hitCondition
- improve event queue