Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [backtrace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Emacs crashing - can't find emacs_backtrace.txt

I've recently made significant changes to my emacs configuration, and now it's crashing every now and then (maybe every week or so). The only thing that I noticed about it is that it happens when I ...
NTC's user avatar
  • 57
0 votes
0 answers
59 views

Why is there no line number in this debug output?

Usually, when I get a backtrace, there is a line number. Right now, I know where to fix this problem, but I don't understand why there is no line number I can jump to;) Debugger entered--Lisp error: (...
Jason Hunter's user avatar
0 votes
0 answers
37 views

How can I get a complete backtrace?

I've gotten some code that was supposed to give me a complete backtrace (setq debug-ignored-errors (remove 'args-out-of-range debug-ignored-errors)) , but I still see it shortened with three dots ...
Jason Hunter's user avatar
1 vote
1 answer
16 views

Re-raise error after adding some context

I have a package that invokes some user-defined code that can be error-prone. For the most part, I'd like to respect the user's choices for handling errors, e.g. debug-on-error. However, due to some ...
erjoalgo's user avatar
  • 863
0 votes
1 answer
44 views

Edebug Backtrace keeps disappearing

Has anyone found any way to step through the code using edebug and see how variables change on each step in the backtrace? On my emacs each time you run edebug-next-mode backtrace disappears and you ...
Daniel Krajnik's user avatar
0 votes
0 answers
44 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." :...
A-nak Wannapaschaiyong's user avatar
2 votes
1 answer
512 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&...
Thomas Koch's user avatar
1 vote
0 answers
101 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:...
alper's user avatar
  • 1,380
1 vote
1 answer
1k 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 (...
zeynel's user avatar
  • 371
0 votes
2 answers
127 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 *...
Alexander Wittmann's user avatar
1 vote
1 answer
109 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 ...
HelloGoodbye's user avatar
2 votes
2 answers
184 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 ...
godblessfq's user avatar
  • 1,217
1 vote
0 answers
30 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 ...
Troy Daniels's user avatar
0 votes
0 answers
60 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 ...
ideasman42's user avatar
  • 8,826
3 votes
1 answer
383 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) #...
Colin Fraizer's user avatar
5 votes
2 answers
337 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 ...
avv's user avatar
  • 1,563
2 votes
2 answers
2k 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 ...
ideasman42's user avatar
  • 8,826
9 votes
2 answers
624 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?
Tom's user avatar
  • 1,260
0 votes
1 answer
254 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 ...
9716278's user avatar
  • 183
0 votes
1 answer
84 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. ...
izkon's user avatar
  • 1,878
8 votes
1 answer
5k 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 ...
Steve Lorimer's user avatar
1 vote
1 answer
177 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, ...
lawlist's user avatar
  • 19.2k
5 votes
1 answer
223 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 ...
spacegoing's user avatar
8 votes
1 answer
187 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 ...
Michael Fox's user avatar
14 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 ...
legoscia's user avatar
  • 6,072
2 votes
1 answer
546 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 ...
Gilles 'SO- stop being evil''s user avatar
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 ...
Jorge Israel Peña's user avatar