Questions tagged [backtrace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers

Friends, I have put strong effort to write an understandable account of the problem. Thus, I ask you to open all the site links quoted at the place of citation to follow the problem history. I have ...
3
votes
1answer
93 views

How does one access the actual arguments to an Emacs Lisp function from the `*Backtrace*`?

I am trying to debug a problem in some elisp and don't understand how to access the information I want from the Emacs Debugger. Specifically, my backtrace looks like: ⋮ #f(compiled-function (hover) #...
3
votes
2answers
84 views

What tools can help make the emacs debug output more readable?

I was expecting to find tools I can use to to e.g. prettify the stack trace, or e.g. show all variables that are bound at each level of the stack trace as you navigate, but haven't found anything. Do ...
0
votes
0answers
10 views

Possible to name closures for easier reading of backtrace?

Let's say I write the following code: (let* ((f (lambda () (debug)))) (funcall f)) This will produce the following backtrace: Debugger entered: nil (closure (bootstrap-version t) nil (debug))() ...
0
votes
2answers
82 views

How to print a stack trace into the stderr from elisp?

There are cases Emacs wont print stack traces on error How can I make elisp print a stack trace from my own code? (into the stdout/stderr for example) Something like Python's traceback: import ...
0
votes
0answers
21 views

How does one debug errors in a process filter, (setq debug-on-error t) does not pop up a *Backtrace*?

With annoying frequency I get errors in my *Messages* buffer that seem to come from process-filters however, I never get a *Backtrace* for them. So, I have to play around and do similar experiments ...
9
votes
2answers
149 views

Can emacs show formatted backtraces?

When getting an Elisp error and trying to debug the problem, the backtrace buffer is quite hard to read with its long lines. Is there a way to get a pretty-printed backtrace buffer?
0
votes
1answer
47 views

wrong-type-argument from insert yank

I'm looking for ways to get the last copy from the kill ring in Emacs. I run (insert (yank))[cursor] with C-x C-e and I get this *Backtrace*: Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
1answer
58 views

Backtrace on file open

I am curious about the origin of certain files under ~/.emacs.d, such as: places, url/cookies, tramp, eshell/history, eshell/lastdir, auto-save-list/.saves-15234-mymachine~, request/curl-cookie-jar. ...
3
votes
1answer
2k views

Debug an elisp error - show call stack when an error occurs

I am relatively new to emacs / elisp, and am trying to build some custom functionality. I have added a number of functions which are added to a major-mode. Occasionally (and seemingly only after a ...
1
vote
1answer
140 views

debugging segmentation fault when using `prin1`

Q:  How can I narrow down this gdb backtrace to a specific character, or set of characters, that is causing a Emacs to suffer a segmentation fault when using prin1? Program received signal SIGSEGV, ...
5
votes
1answer
169 views

Elisp backtrace print garbage messages

I'm using emacs 25.2 on osx 10.12 and following elisp intro to produce some error message intentionally. (This is a list) After I run C-x C-e on this line. A backtrace buffer appeared as supposed ...
7
votes
1answer
129 views

Can emacs auto-save backtrace?

Trying to debug a problem with debug-on-error. Backtrace appears for a second and then some other parts of the system make it disappear and emacs becomes dysfunctional so I can never read it. Is ...
12
votes
1answer
646 views

Get backtrace from error programmatically

If an error is signalled in Emacs Lisp code, and debug-on-error is t, I get a backtrace buffer that makes it easy to figure out where the error occurred. However, for errors that occur while ...
2
votes
1answer
202 views

Break on all errors in edebug

How can I make Emacs break on an error, even if the error is being handled somewhere? In my current scenario, the setup of a major mode is modifying the buffer and I want to find out why (and then ...
2
votes
1answer
65 views

escape or omit binary data in backtrace buffer?

Many times when I check the backtrace buffer, I can't copy the text out because of the embedded binary data (perhaps it's the internal null characters making the copy function think the string is ...