Skip to main content

Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.

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

projectile not showing files under a .git directory

I had a directory structure like this: .projectile lots of folders onefolder/nested/.git onefolder/bunch of other stuff when locked into the top-level project, none of the files under the .git ...
user129393192's user avatar
3 votes
1 answer
37 views

After refactoring elisp code, is there some help in finding unused code, mostly functions and variables?

Dealing with a one-file elisp package, I wonder if there is a nice way to see unused functions and variables after some major refactoring. I can go through the code and do xref-find-references. But ...
Harald's user avatar
  • 328
0 votes
0 answers
24 views

Opening a thumb in image-dired opens a new thumb display buffer each time

Hitting image-dired-display-this (bound to key RET) and image-dired-display-next (bound to key ') in the image-dired-thumbnail buffer opens/duplicates another image-dired-thumbnail buffer each time. ...
jjk's user avatar
  • 744
0 votes
0 answers
63 views

Color bleeding and polymode

I sometimes experience "color bleeding" in auctex, and wasn't able to find the source of the problem for a long time. In particular because I wasn't able to reproduce the issue. I also can't ...
student's user avatar
  • 1,119
0 votes
1 answer
52 views

line-move-1 in temp buffer, sometimes results in unexpected point

I have some code that loads a file into a temp buffer and tries to do some sub-string operations on the temp buffer. But I have noticed that the same code and file sometimes gives different results ...
Ben Schwehn's user avatar
2 votes
1 answer
190 views

Auctex 14.0.2 returns errors on (wrong-type-argument number-or-marker-p nil) in run-hooks when opening tex files

Similarly to this thread since upgrading to AUCTeX 14.0.2 there are errors when I open TeX files. This seems to be a different issue though, since the AUCTeX version is different and the toggle-debug-...
Ajned's user avatar
  • 764
0 votes
1 answer
20 views

Why can a function change behavior after instrumenting edebug on it 1 time?

I have a function that's broken until debugging: it returns nil which it shouldn't. After I flag it for debug and unflag it, it works correctly from then on. Why?
meedstrom's user avatar
  • 153
0 votes
1 answer
50 views

"Function provided is already compiled" - php mode

I get "Function provided is already compiled" in minibuffer whenever I enter php-mode. Why and how to fix it? Debian bookworm, Emacs 28.2, php-mode 1.24.2. EDIT This is the backtrace @phils ...
user avatar
0 votes
1 answer
102 views

Where is pixel-scroll-precision-use-momentum described in more detail?

Precision scrolling in Emacs 29 introduces several variables to control the momentum effect while scrolling. Are these terms defined anywhere in more detail, possibly by using a formula or two to ...
StackExchanger's user avatar
1 vote
0 answers
71 views

How to run a function when a variable is accessed/read in Emacs Lisp?

I'm trying to find a way to run a function whenever a specific variable is accessed or read in Emacs Lisp. I want to know which functions are using this variable, but I don't know them beforehand. I'm ...
HappyFace's user avatar
  • 830
2 votes
0 answers
76 views

how to find why emacs crashes?

From time to time my emacs 29.1 crashes. This happens essentially when using one of the menu items. Fatal error 11: Segmentation fault Backtrace: emacs(+0x1b0c56)[0x56406d61bc56] emacs(+0x4bdbe)[...
Hafid Boukhoulda's user avatar
0 votes
0 answers
19 views

(scan-error "Unbalanced parentheses" 1 1) when stepping forward in Edebug

Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 1 1) scan-lists(41 -1 -1) down-list(-1) edebug-step-out() edebug-forward-sexp(1) funcall-interactively(edebug-...
shintuku's user avatar
  • 121
0 votes
1 answer
35 views

`term` often gets filled with random character codes, any suggestion on how to fix it?

I'm running doom emacs, and here's an example of a command I ran and the resulting output. For some reason, term gets filled with these random character codes. Any suggestions on how to fix this?
shintuku's user avatar
  • 121
1 vote
1 answer
44 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 ...
lukeflo's user avatar
  • 195
0 votes
1 answer
18 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 ...
almint's user avatar
  • 1
0 votes
1 answer
102 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.
Daniel Krajnik's user avatar
0 votes
0 answers
29 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 ...
David's user avatar
  • 309
0 votes
0 answers
77 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 ...
user129393192's user avatar
0 votes
1 answer
45 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 ...
alexander's user avatar
  • 133
0 votes
2 answers
44 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 ...
kjo's user avatar
  • 3,257
1 vote
1 answer
126 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 ...
Duncan Britt's user avatar
1 vote
0 answers
111 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 ...
Ian Pringle's user avatar
0 votes
0 answers
38 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?
balanga's user avatar
  • 135
0 votes
0 answers
49 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 ...
crocefisso's user avatar
  • 1,363
0 votes
0 answers
22 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....
eugene's user avatar
  • 499
0 votes
0 answers
345 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 ...
zeynel's user avatar
  • 371
1 vote
1 answer
41 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)
mcp's user avatar
  • 67
0 votes
0 answers
13 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 ...
Daniel Krajnik's user avatar
0 votes
1 answer
158 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 ...
Daniel Krajnik's user avatar
2 votes
2 answers
212 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 ...
user129393192's user avatar
0 votes
1 answer
426 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 ...
Herman's user avatar
  • 57
2 votes
2 answers
285 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,...
MySQLInjection's user avatar
0 votes
1 answer
156 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 ...
Felipe Canteiro's user avatar
0 votes
1 answer
45 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
85 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/...
Dilna's user avatar
  • 1
0 votes
2 answers
340 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 ...
Daniel Krajnik's user avatar
0 votes
0 answers
35 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 ...
user129393192's user avatar
1 vote
1 answer
402 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 ...
Sinthoras's user avatar
0 votes
1 answer
17 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)) "...
Jason Hunter's user avatar
0 votes
1 answer
197 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 ...
theboard's user avatar
0 votes
0 answers
58 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 ...
Alexander Praehauser's user avatar
2 votes
1 answer
530 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
2 votes
0 answers
185 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 ...
Dizzar's user avatar
  • 21
0 votes
1 answer
83 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-...
doctorate's user avatar
  • 1,829
0 votes
0 answers
66 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 ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
1 vote
0 answers
296 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&...
Sati's user avatar
  • 815
0 votes
1 answer
48 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 ...
tgunr's user avatar
  • 123
7 votes
1 answer
2k 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 ...
Tom Riddle's user avatar
1 vote
0 answers
405 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....
Butters's user avatar
  • 11

1
2 3 4 5
11