[v2] Setting a breakpoint on a static declaration line causes a crash Topic is solved

Report problems with documented functionality
User avatar
thqby
Posts: 397
Joined: 16 Apr 2021, 11:18
Contact:

[v2] Setting a breakpoint on a static declaration line causes a crash

Post by thqby » 28 May 2023, 03:52

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]()
Use vscode zero-plusplus.vscode-autohotkey-debug plug-in to debug.
The error occurred in the https://github.com/AutoHotkey/AutoHotkey/blob/alpha/source/Debugger.cpp#L148


Post Reply

Return to “Bug Reports”