4

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?

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.