Whenever Edebug is entered, it needs to save and restore certain data before even deciding whether to make trace information or stop the program.
max-lisp-eval-depth(see Eval) and
max-specpdl-size(see Local Variables) are both increased to reduce Edebug's impact on the stack. You could, however, still run out of stack space when using Edebug. You can also enlarge the value of
edebug-max-depthif Edebug reaches the limit of recursion depth instrumenting code that contains very large quoted lists.
executing-kbd-macrois bound to