When using edebug one can get a local variable by command describe-variable
(C-h v
), but are there any ways to display all local variables?
For example in Python you can call locals()
in a pdb
session, which returns all the local vars in dictionary. Does Elisp have a similar function?
backtrace--locals
, however, double hyphen suggests it's not intended for use by other packages. I.e. I would advise against using it in your ELisp programs, since the API may change, or the function will be removed entirely.debug
hasdebugger-toggle-locals
(bound tov
), not sure about edebug.