I too wish there was a better way to work with anonymous functions, but debug_get_callstack() returns things like gml_Script_anon@32@scr_test@scr_test:3 at best.
debug_get_callstack()
gml_Script_anon@32@scr_test@scr_test:3