9

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?

Arnot
  • 671
  • 1
  • 5
  • 15
atevm
  • 928
  • 7
  • 16
  • 1
    You may be interested in 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. – wvxvw Sep 25 '17 at 14:07
  • 1
    Plain `debug` has `debugger-toggle-locals` (bound to `v`), not sure about edebug. – npostavs Sep 26 '17 at 12:29

0 Answers0