2

Let's say some package does

(make-thread
  (lambda ()
    (message "Started thread.")
    (error "Fit happens.")
    (message "Finished thread.")))

Regardless of M-x toggle-debug-on-error, the error will be silently ignored. Even on

(thread-join (make-thread ...))

the error will not be handled in any manner. (thread-last-error) can give access to the error object, but it is subject to race conditions.

Is it possible to run the debugger instead, when there is an error in threads?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.