Questions tagged [debugging]
Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.
535
questions
1
vote
1
answer
34
views
Check value of local variable assigned with let/let* editing org-export functions
On my way learning emacs and doing some first steps in elisp programming, I'm trying to adapt the LaTeX output of org-export. It's a lot learning by doing and that's a good thing since it improves my ...
0
votes
1
answer
15
views
Symbol's function definition is void: ergoemacs-theme-option-on
This page of ergoemacs-mode documentation tells about ergoemacs-theme-option-on function that can disable some optional keybindings. When I try to use this function emacs throws an error. Besides this ...
0
votes
1
answer
32
views
How to watch variables in gdb?
Is there any buffer in emacs' gdb that can print selected variables (e.g. print *display) on each change (step, next, finish etc.)?
It would be useful as opposed to typing print variable each time.
0
votes
0
answers
28
views
Enter debugging mode on next action
I have a problem with my screenshots not showing in my org-file in emacs 29
If I click on attachment link an empty buffer opens. I would like to investigate the problem. I would like to start by ...
0
votes
0
answers
40
views
dired-sidebar not working
My dired-sidebar no longer works. For the commands dired-sidebar-toggle-sidebar and dired-sidebar-show-sidebar they both give:
Wrong type argument: stringp, (Git "~/")
Anyone know the ...
0
votes
1
answer
40
views
Conversion from html to org-mode error: *** Eval error *** Wrong type argument: listp, " "
I tried to build a small converter which will traverse the dom-tree and output its org-mode equivalent but I faced a *** Eval error *** Wrong type argument: listp, " " error means the ...
0
votes
2
answers
34
views
How to troubleshoot: `other-buffer` suddenly begins to ignore some buffers
With increasing frequency, my Emacs session's function other-buffer begins to malfunction.
Specifically, at some point, and for no reason I can discern, other-buffer stops "seeing" some ...
1
vote
1
answer
58
views
Help me get Scala source blocks working in org mode
UPDATE: This issue was fixed for me by changing my version of scala from scala 3 to 2.13, as recommended by NickD in the comments below.
END UPDATE
When I attempt to evaluate Scala source blocks in ...
0
votes
0
answers
50
views
Buffers sporadically not updating
I'm having a very difficult time diagnosing this problem. Essentially, sometimes a buffer will not update without user interaction. For example, with a terminal buffer (the shell/term/package used ...
0
votes
0
answers
27
views
Single stepping through shell script
Is there an emacs package that would enable single stepping through a shell script, or some facility for setting breakpoints or viewing variables?
0
votes
0
answers
31
views
How to fix "cd: Wrong type argument: stringp, nil" error?
I use org-babel-tangle to generate latex documents from org files.
These org files have the following first line:
#+PROPERTY: header-args :latex :comments org :tangle PATH/FILE_NAME.tex
I built a ...
0
votes
0
answers
19
views
Find out what created the window?
dap mode keeps creating unwanted window, I'd like to prevent it but can't find a way
I can think of setting a breakpoint on window-creation.
But there seems to be a lot of those split window functions....
0
votes
0
answers
196
views
error in process sentinel: Wrong type argument: integer-or-marker-p, nil
I get this error when I search dired with M-x find-name-dired:
error in process sentinel: Wrong type argument: integer-or-marker-p, nil
The search finds the files then ends with this error. I'm not ...
1
vote
1
answer
36
views
Cannot switch to buffer
When I hit C-x b to switch to buffer I receive:
Symbol's function definition is void: help--symbol-class.
I'm on Linux with Emacs 27.1 (build 1 - GTK 3.24.24)
0
votes
0
answers
9
views
Does `get-char-property-and-overlay(nil org-image-overlay)` mean that the first argument was nil or `org-image-overlay`?
I've spent over 20 hours trying to solve an issue with org-mode loading. I've stepped through the code until it reached a function that stack trace indicates fails due to one of the arguments being ...
0
votes
1
answer
117
views
inline images stop working- wrong-type-argument. (setq org-startup-with-inline-images t) causes errors on start
Adding (setq org-startup-with-inline-images t) trips debugger when opening an .org file with inline images. I've tested it both on Wayland and X11 and both on Mesa EGL and Nvidia. Same behavior in all ...
1
vote
2
answers
153
views
How to make buffer recognize file moved?
Here's a simple use case:
I open bar/foo/file in a buffer and I'm working. In eshell, I do mv bar/foo/file bar/baz/foo/file. Now emacs can no longer recognize where to save and doesn't save it ...
0
votes
1
answer
144
views
"Error (frameset): Wrong type argument: number-or-marker-p, nil" How to debug it?
Such a message in the "Warnings" window. "Frameset" I think refers to the .emacs.desktop file. I got this message when Emacs in daemon mode restored the desktop. There is no such ...
0
votes
1
answer
90
views
I can't run gdb in emacs
I want to debug some C++ code in emacs with gdb. I tried to enter gdb with the command:
M-x RET gdb RET
Then I get a prompt that reads:
Enable debuginfod for this session? (y or [n])
Whatever I type,...
0
votes
1
answer
90
views
(wrong-type-argument stringp nil) error when calling tangle
As the title says, I get this error whenever I, or the function I'll show below, call org-babel-tangle. I'm using a org file to configure emacs, which tangles every time it is saved to my init.el.
The ...
0
votes
1
answer
36
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 ...
0
votes
0
answers
15
views
Edebug conditional breakpoint when a value that contains a certain string appears?
Is it possible to set a conditional breakpoint in edebug such that it gets hit only when a symbol that contains a string "download:" gets hit?
I've tried running edebug-set-conditional-...
0
votes
0
answers
66
views
Emacs Lisp error: (void-variable Alias)
How can I figure out where the problem exists from the following Emacs Error?
Debugger entered--Lisp error: (void-variable Alias)
eval-buffer(#<buffer *load*-879707> nil "/home/hagbard/...
0
votes
2
answers
135
views
How do you troubleshoot an .el file not loading even though it's on load-path filepath?
I've copied a file to a path that's definitely listed in load-path symbol. But the file doesn't get loaded when running emacs with --debug-init flag.
How would you find out what causes it? It uses ...
0
votes
0
answers
30
views
Random warning popping up occasionally when using eshell
I occasionally get this warning while running eshell:
Warning (comp): tramp-loaddefs.el.gz:745:2478: Warning: reference to free variable ‘tramp-remote-path’
and was wondering how to fix it. According ...
0
votes
1
answer
177
views
How to debug emacs lisp? (e.g. Symbol's value as variable is void: n)
When I start Emacs, I get the error message: Symbol's value as variable is void: n
I am pretty sure, it is just a typo in my init.el, but how can I find it?
Shouldn't there be a debugger, which tells ...
0
votes
1
answer
15
views
helm-projectile-recentf, "Can't rotate non image file"
When I hit M-r to get an exact match, helm-projectile-recentf, I get:
Debugger entered--Lisp error: (cl-assertion-failed ((and (file-exists-p file) (string-match (image-file-name-regexp) file)) "...
0
votes
1
answer
117
views
code execution issue in org mode on windows
I issue
emacs -Q yes.org
where yes.org is
(org-babel-do-load-languages 'org-babel-load-languages '((python . t)))
#+begin_src python :results output
print(2)
#+end_src
I first evaluate the loading ...
0
votes
0
answers
52
views
Emacs breaks entire system, can't find log
I'm having a real problem with Emacs in that it keeps breaking my entire system in irregular intervals. More precisely, at some point my screen starts to go black, then flickers back up again, then ...
2
votes
1
answer
396
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&...
0
votes
0
answers
24
views
How to debug "Don’t know how to make a localized variable an alias" errors at startup?
Background: my company provides (confidential) elisp libraries for editing source code in several languages, including TypeScript. I added some lines to load these libraries to my init.el:
(require '...
2
votes
0
answers
145
views
dap-mode: Initialize request failed: "program" property is required for launch
I am trying to use LLDB to debug my rust code. To edit the code, I use rustic-mode with lsp-mode, and to perform debugging I am trying to use dap-mode.
Currently, this is how I initialize dap-mode in ...
0
votes
1
answer
61
views
debugging helm-bibtex cannot open PDF with the default emacs viewer
I cannot get helm-bibtex open pdfs from the helm-bibtex buffer with all bibliography nicely listed in an organized view showing which reference has a pdf or not.
I usually get this view by M-x helm-...
0
votes
0
answers
53
views
errors related to agenda
#+startup: logdrawer
#+SEQ_TODO: URGENT(u!) TODO(t!) SOMEDAY(s!) | DONE(d@) CANCEL(c@)
* Task
** TODO Pay bill
DEADLINE: <2023-02-20 Mon>
:LOGBOOK:
- State "TODO" from ...
0
votes
1
answer
36
views
Syntax issue using `add-to-list`
This set up ignores the custom-set-variables statement and generates the warning reproduced below. If I uncomment the first statement, however, it works. This is probably a novice's issue... Is there ...
1
vote
0
answers
227
views
`add-load-path!` relative directory in Doom Emacs defaults to `~/.emacs.d/lisp` instead of ~/.doom.d/ where `config.el` sits
As described in the title above, the following code in config.el:
(add-load-path! "lisp")
adds "home/user/.emacs.d/lisp/lisp" to load-path instead of "/home/sati/.doom.d/lisp&...
0
votes
1
answer
33
views
How to stop evaluating within .emacs for debugging purposes?
I think I have a problem in my .emacs file and would like to place in it some function that would cause emacs to stop evaluating. I could then start a binary search to see where the problem is ...
7
votes
1
answer
1k
views
Packages I never knew they existed cause problems
I'm using Kubuntu 22.04 and I tried to configure my doom-emacs Installation. Then I got these weird error-messages and couldn't figure out how to fix them. So I uninstalled doom and emacs completely ...
1
vote
0
answers
355
views
Error after upgrade
I upgraded doom yesterday. Unfortunately, since then I get the following error whenever I doom run :
Warning (initialization): An error occurred while loading ‘/Users/*****/.emacs.d/.local/etc/@/init....
0
votes
1
answer
52
views
Why is debug-on-error always enabled at startup?
Whenever I start up emacs, debug-on-error is enabled. I can't figure out why, there's nowhere where I explicitly enable it. Is there any way for me to figure out where it's coming from?
0
votes
0
answers
29
views
Semantic fails while processing system header
I have Emacs 28.1.90, locally built, with cedet and semantic as built-in packages. However, when i tried turning things on (using semantic for auto-completion with company), i started getting eroors ...
1
vote
1
answer
1k
views
Problem debugging on dap-mode
I am new to emacs and I was following this tutorial to configure lsp-mode:
https://emacs-lsp.github.io/lsp-mode/tutorials/CPP-guide/
But dap-debug does not work. Everytime I try to debug, it doesn't ...
1
vote
0
answers
26
views
A new version of a package introduced unexpected behavior - how to discover the source of the issue?
My issue
There is a small behavior in org-mode that I've grown accustomed to: if there are multiple headlines of the same level (e.g. 3 stars) and they are all folded (i.e. their contents are not ...
0
votes
1
answer
71
views
Emacs on MacOS 12.5+: Commands failed with 127
I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS ...
0
votes
1
answer
29
views
emacs opens unwantedly with some git commands
I have a very strange problem that I cannot work out. Emacs opens if I run some git commands such as git log, git branch, git show. Some git commands behave normally and do not open emacs, such as git ...
0
votes
0
answers
72
views
`C-x C-;` freezes emacs
This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
0
votes
1
answer
192
views
:documentation void-function error
The following backtrace problem in being produced but cannot identify the problem correctly.
Debugger entered--Lisp error: (void-function :documentation)
(:documentation (concat "Version and ...
0
votes
1
answer
19
views
org-agenda stuck displaying last file in org-agenda-files list
For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
1
vote
1
answer
85
views
Bookmark Plus and pdf-tools/pdf-view error
I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, ...
1
vote
1
answer
72
views
Enabling --debug-init from within .emacs
Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?