-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve debugging #44
Comments
From a quick glance it seems like many of the calls to That should take care of 107 of the 254 instances of exwm--log in the code base. One alteration this approach would require is modifying (defun elpaca--caller-name (n &rest skip)
"Return Nth calling function's name, skipping symbols in SKIP."
(cl-loop with current = (backtrace-frame (1+ n)) ;; Skip this function call.
with previous = nil
while (and (or (not (eq (car current) t))
(memq (cadr current) skip))
(setq previous current current (backtrace-frame (cl-incf n))))
finally return (cadr (or current previous)))) Which produces the
EDIT: I see now we already have an |
Improvements to debugging are very welcome. In my experience, some functions are invoked so often that tracing them leads to noise in the log. Many functions include the empty Another consideration is that we already have the |
Alternatively, we could add some kind of "bug report" command, but that's a later problem.
Originally posted by @Stebalien in #43 (comment)
The text was updated successfully, but these errors were encountered: