I'm having trouble getting to ELPA behind our corporate proxy. I see proxy traffic attempting to CONNECT to the ELPA domain which then fails. How can I turn on debugging to see the exact URL that Emacs is trying to access? -debug-init didn't work for me with Emacs 27.1

1 Answer 1


There is a variable for debugging URL calls, url-debug, set it to true:

(setq url-debug t)

Use the function url-retrieve-synchronously, this will create a debug buffer called *URL-DEBUG* and there you can see all the debug output from the call:

(url-retrieve-synchronously (url-generic-parse-url "https://elpa.gnu.org/"))

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.