Questions tagged [backtrace]
The backtrace tag has no usage guidance.
22
questions
0
votes
0
answers
40
views
dynamic scoping doesn't perform as expected
(require 'cl)
(require 'seq)
(require 'dash)
(eval-when-compile
(require 'cl-lib)
(require 'subr-x)
(require 'env)
(require 'json))
(defgroup chatgpt nil
"ChatGPT frontend."
:...
2
votes
1
answer
277
views
Line numbers in backtrace?
I'm working on debugging this backtrace (from Emacs bug #12145, shortened):
Debugger entered--Lisp error: (wrong-type-argument "markerp nil")
signal(wrong-type-argument ("markerp nil&...
1
vote
0
answers
56
views
How can I log output of debug into a file?
I am GNU Emacs 28.1.91 with native compilation. Emacs freezes so often, where I am unable to find what's is wrong. During the freeze all my work is always gone where the save does not occur.
Following:...
0
votes
1
answer
521
views
Symbol’s function definition is void: make-closure
I’m trying to split a number stated in scientific notation (6.371e6) and write it as float (6371000) (I’m doing this to learn.)
This is the code I have so far
A = (car (mapcar #'string-to-number (...
0
votes
2
answers
72
views
when I open file in emacs I get lots of strange errors
My OS is ubuntu 22.04 LTS, emacs is in /usr/local/texlive/emacs-28.1, texline in /usr/local/texlive and auctex in .emacs.d/elpa. Whenever I open a file in the emacs-buffer, it shows -- in a buffer *...
1
vote
1
answer
84
views
"Invalid version list `(4 5 -4 414)'" when running `M-x package-list-packages`
When following a suggestion for solving another problem, I'm doing M-x package-list-packages. However, that gives me the error message Invalid version list `(4 5 -4 414)'. What does this mean, and ...
1
vote
1
answer
80
views
How to log backtrace to a file instead of popping it up and blocking following backtraces
With emacs if there is a backtrace buffer open, new backtrace is ignored. I find it is unconvenient when I am trying to find out which function/hook changes a variable. I use debug-watch as described ...
1
vote
0
answers
25
views
Get backtrace while busy
Something in my configuration causes emacs to occasionally hang or enter a very long busy loop. I have been adding things to my .emacs for several decades, so figuring out what the problem is by ...
0
votes
0
answers
31
views
Possible to find the line or position where an error happens?
With stack traces in elisp, I only see the function and the error that occurred within this function.
Is it possible to also include the line number or the character-position where the error took ...
3
votes
1
answer
299
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) #...
5
votes
2
answers
259
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 ...
1
vote
2
answers
1k
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 ...
9
votes
2
answers
500
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
1
answer
192
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
1
answer
80
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.
...
7
votes
1
answer
4k
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
1
answer
172
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
1
answer
209
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 ...
8
votes
1
answer
170
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 ...
13
votes
1
answer
1k
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
1
answer
453
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
1
answer
67
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 ...