Code: Select all
fn() {
static a := [() => MsgBox(), () => MsgBox(2)] ; 2. Once debugging has started, set a breakpoint here, the breakpoint on the next line will be cancelled. Then cancel the breakpoint and the debugger crashes.
return a ; 1. Set a breakpoint here and start debugging
}
fn()[1]()
The error occurred in the https://github.com/AutoHotkey/AutoHotkey/blob/alpha/source/Debugger.cpp#L148