backtrace--locals

backtrace--locals is a built-in function in `C source code'.

(backtrace--locals NFRAMES &optional BASE)

Return names and values of local variables of a stack frame.
NFRAMES and BASE specify the activation frame to use, as in `backtrace-frame'.