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
1
vote
2answers
31 views

Why does `narrow-to-region` complain that its args are not `integer-or-marker-p`?

I have some functions that depend on smart-parens code. (defun outer-paren () "Move point to the outermost parenthesis." (interactive) (ignore-errors (while t (up-list))) (sp-...
0
votes
1answer
33 views

The call stack result of profile-report doesn't match the real function codes

I'm trying to figure out why my emacs was slow tonight and found: - command-execute 82796 87% - call-interactively ...
0
votes
0answers
19 views

I got an error: Package 'tabbar-20160524' is a system package,not deleting

I installed spacemacs using "git clone https://github.com/syl20bnr/spacemacs.git ~/spacemacs/.emacs.d" but I got an error: Package 'tabbar-20160524' is a system package,not deleting.... When I ...
1
vote
0answers
22 views

Matlab-mode autocompletion error

For some reason matlab-mode is returning an error when running autocompletion. The debugging output for a completion of "load Da[TAB]" is shown below. The closest thread that I've found in sourceforge ...
0
votes
1answer
18 views

Newsticker failure: (wrong-type-argument listp \.\.\.)

Suddenly newsticker is failing to load. I get the following stack trace on error. I have made no recent upgrades. Debugger entered: Lisp error: (wrong-type-argument listp \.\.\.) newsticker--stat-num-...
0
votes
0answers
28 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
0
votes
1answer
105 views

Debugging with dap-mode for python and taking user input

I am trying to make dap-mode for python working on spacemacs. For the most part I was able to get it working, but I am having issues taking in input on the CLI def main(): a = input(">") The ...
0
votes
0answers
16 views

Don't restore previous window configuration on debugger commands

When using the emacs lisp debugger, if I invoke it change the window configuration invoke it again (most likely by hitting a breakpoint through the d command) my changed window configuration ...
0
votes
0answers
27 views

Segmentation Fault with Desktop Save Mode (emacs 26.3.50)

When I try to run emacs 26.3.50 (built from source), it gives me the following warning: "Warning: desktop file appears to be in use by PID .... Using it may cause conflicts. Use it anyway? (y or n)". ...
1
vote
1answer
36 views

How to use `next-error` and `previous-error` without the compilation buffer visible

I want to be able to use grep to find matching lines and to be able to jump through them using next-error and previous-error however I don't feel the need to have the match list on screen and it takes ...
0
votes
0answers
24 views

Wrong type argument: arrayp, nil in X mode

I'm getting a strange error on Emacs 27. Only in GUI mode (not in terminal mode), typing / to open the Evil search functionality results in the error wrong type argument: arrayp, nil being displayed ...
0
votes
0answers
32 views

How to get a stack trace for “Eager macro-expansion failure:”

On startup I'm getting this message: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2) How can I find whats causing the warning? --debug-init doesn't do anything in this case as ...
1
vote
1answer
45 views

How to make gdb mode send proper filename to gdbserver? Running gdb from pure terminal works

I am trying to debug an application on a remote environment. Ofcourse running Tramp over gdb works as in https://www.gnu.org/software/emacs/manual/html_node/tramp/Remote-processes.html, but you miss ...
0
votes
1answer
72 views

Tools to develop and debug ELISP code

I have some experience in Emacs-LISP. Today I spent 6 hours writing LISP code that I guess-timate would have taken 1h30 to write in Python because my workflow to develop and debug is very clunky. In ...
0
votes
0answers
7 views

Line of error in Emacs Regression Test (ERT) framework

I am refactoring some code and adding doc-tests as suggested here. The previous iteration passed the tests. Now running ERT in batch mode with eemacs -batch -l ert -l org-clock-split.el -f ert-run-...
1
vote
0answers
10 views

CIDER inspector unable to refresh a modified atom

With the CIDER inspector I'm able to view the contents of an atom. I can do C-u C-u C-c M-i and input the atom with an @ prefix and the value displays correctly. Now, if I keep the inspector window ...
1
vote
0answers
20 views

Conditional CIDER breakpoint not working in recursive functions

I'm using CIDER for Clojure programming. I've been playing around with the CIDER debugger lately. I wanted to use the conditional breakpoint facility with some simple recursive function, such as ...
6
votes
2answers
106 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?
2
votes
1answer
34 views

How to resolve TRAMP spamming empty messages

Connecting to a remote machine with tramp that may have VC (subversion) related files, I tend to see a large number of repeated messages in the *Messages* buffer. For example: Type "q" in help ...
0
votes
0answers
26 views

emacs-jupyter debugging and realgud

emacs-jupyter supports pdb by displaying the pdb prompt in a minibuffer. I have a feeling that I should be able to connect to it with realgud:pdb, similarly to how I can realgud:track-mode-enable in ...
0
votes
0answers
24 views

Org Mode Clock-In Task Showing Void Function Definition

When trying to clock in a task in org mode I am getting this error: Troubleshooting so far: tried erasing .elc files from elpa org directory and re-loading. Tried updating org mode. Update failed (...
0
votes
1answer
22 views

Why does Emacs not enter the debugger when popping a cons twice?

I wrote some LISP code that was wrong because I was trying to pop a cons twice: (let ((pair '("a" . "b"))) (let* ((a (pop pair)) (b (pop pair))) b)) Evaluating this in the *scratch* ...
0
votes
0answers
172 views

.emacs showing error “Wrong type argument: listp, closed” during start up

I am getting an error Wrong type argument: listp, closed while starting my Emacs. I tried to debug each line and do a M-x eval-buffer during configuration. At at time, it was showing only End of line ...
0
votes
1answer
76 views

How to debug Java Web Application

I am trying to debug my java web application (using emacs), but I am having issues setting it up to connect with the debug port. Within emacs I have installed both lsp-java and dap. The debug port ...
2
votes
1answer
55 views

Debugger entered--Lisp error: (invalid-read-syntax “)”) read(#<buffer *load*>)

Launch Emacs using runemacs --debug-init and the following error occurred. any idea on how to locate the file/script of the error or how to fix it? Thanks in advance. Debugger entered--Lisp error: (...
0
votes
0answers
34 views

ac-php “Wrong type argument: hash-table-p, nil” when calling company-complete

I'm using emacs 27 compiled from git sources and company for code completion. I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
0
votes
1answer
33 views

How to edit code in the source window using realgud?

I've started using realgud:pdb for python debugging in emacs: https://github.com/realgud/realgud When you begin a realgud session, it opens a command window and a source window. Keys like 'n' and 'b'...
1
vote
1answer
31 views

How do I reset minibuffer when it seems to act like a regular buffer?

Occasionally the minibuffer acts somewhat like a "regular" buffer. By that I mean that when I type C-x o my cursor jumps to that buffer and then waits for me to type something. But I can't write ...
1
vote
1answer
46 views

Error in custom eshell function (exit and close window)

I got the below function from an article on howardism.org. Its purpose is to exit eshell and close the corresponding window. ;; GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of ...
0
votes
1answer
159 views

Melpa - 'Failed to download melpa'

I am on a fresh install of emacs 26.3, and I have the following in my init.el: (require 'package) (add-to-list 'package-archives '("melpa", "https://melpa.org/packages") t) (package-...
4
votes
3answers
150 views

How to trace the evaluation of all forms in the body of an Elisp function

When working with bash scripts, when something is not behaving the way you want it to, you can add a set -x and the next time you run the script you can see the methods and the sub methods being ...
0
votes
0answers
34 views

How to eliminate emacs -Q startup lag

I'm trying out emacs. With no .emacs file and starting emacs 26.1 with emacs -Q on Debian 10, it takes two seconds for the welcome screen to show up. Before the welcome screen, there is a message "...
2
votes
1answer
138 views

How to enable Backtrace?

I'm following the tutorial's "Making error": reproduced in the screenshot below. The manufactured error does not open the Backtrace window as it should. The same page says "It is possible to prevent ...
2
votes
1answer
93 views

sudden let-alist feature failure

This morning, I wake up and restart my Emacs.app (26.3 GNU Emacs but the emacsformacosx.com version, from brew cask) and get stuck at this: Eager macro-expansion failure: (error "Loading file /Users/...
3
votes
0answers
401 views

How to debug C++ (dap-mode + LLDB or GDB)

I want to use dap-mode to debug a C++ code. Until now I followed instructions dap-mode (LLDB) and lldb-vscode. I further enabled the mode and UI via (dap-mode 1) (dap-ui-mode 1) When I execute dap-...
0
votes
1answer
22 views

eval-expression on (setq helm-debug t) does not change describe-variable output

I'm running this version of Emacs: GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-23, modified by Debian Installed on Ubuntu 19.10 via apt, and not built from source. ...
0
votes
0answers
41 views

Error running timer ‘ac-update-greedy’: (void-variable org-link-types)

I very recently updated to Emacs 26.3 and Org 9.2.6, and am getting the above-mentioned error whenever I type "[[" in an org-mode buffer to type a hyperlink. Unsurprisingly, no error after turning off ...
1
vote
2answers
95 views

Installing helm-projectile results in “mapc: Lisp nesting exceeds ‘max-lisp-eval-depth’”

Context Linux Mageia 7. Emacs 26.3 (vanilla install). Problem Reproducible steps: (Re)Move the content of ~/.emacs.d/elpa. Start emacs with no configuration (emacs -Q). In the *scratch* buffer, ...
1
vote
2answers
37 views

how to prevent debugger from taking focus when you evalute lisp expresison with errors

How to reproduce: write some faulty elisp code press C-x C-e for eval-last-sexp the debugger will appear (*backtrace* window) and take the focus of the cursor. I'd like the focus to remain with ...
0
votes
0answers
18 views

Debugger breaks with Args out of range: “”, 0

When forge is installed on a system with no compiler, I sometimes get this error which breaks magit. I'd like to figure out the traceback for this error so I can add some proper error handling, ...
1
vote
1answer
155 views

How can I make emacsclient use an existing window in the current frame?

I'm on MS Windows, if that makes a difference. My desired behavior: There is only one frame visible at any time. Visiting a file should use an existing window in that frame. (This is the default ...
0
votes
0answers
72 views

list-packages has become very slow [duplicate]

After upgrading emacs from 24.4 to 26.3 on Windows, everything works fine except for one thing: the list-packages window has become horribly slow. Like, the cursor moves one second after the keystroke....
1
vote
2answers
96 views

Problem with giving inputs to a function programmatically

Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
0
votes
1answer
47 views

Unable to run nov-mode on Windows

disclaimer: I'm still relatively new to Emacs. When I open an Epub on MS Windows, Emacs opens it using Zip-Archive mode and displays its content (which is normal afaik). However, when I start nov-...
1
vote
1answer
78 views

Non-hex digit used for Unicode escape error when setting org-latex-classes

When I try to set org-latex-classes with the following code: (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \usepackage{xeCJK} %\usepackage[heading]{...
0
votes
1answer
35 views

How to check whether an optional param was input?

I have a command with an optional argument whose value is a number. I need: If no input argument then use default value (1000) else use input arg. (random t) (defun insert-random-number-at-point(&...
0
votes
1answer
30 views

Scripted bookmark jump not working after startup

Add the following to .spacemacs: (defun my-bookmark-set (char) (interactive "cPlease enter a bookmark name to set: ") (bookmark-set (char-to-string char))) (defun my-...
0
votes
0answers
54 views

Unsure what to make of the following Emacs prompt to change my init file

Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen: An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el': ...
0
votes
0answers
96 views

Impossible to answer y-or-n-p prompt in EXWM if X window is focussed

When a y-or-n-p question (e.g. The file you want to open is very large. Really want to open it?) pops up in the minibuffer while an EXWM buffer is focussed, I have no option to answer the question (...
2
votes
1answer
85 views

How to use edebug on a function

I am trying to debug a problem with the alert.el package using edebug. However, I am unable to step through the alert function. I expect the debugger to enter the function and allow me to step ...

1 2 3 4 5 7