Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

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

2
votes
0answers
812 views

Spacemacs C++ debugging?

What tools are you using for setting Breakpoints visualize Variables within Spacemacs? I had a look at gdb but it felt awkward to set the breakpoints separated from the source files. I would like to ...
2
votes
1answer
364 views

json-readtable-error during org-capture

This problem only arose today and I haven't really changed anything substantial in my init.el so I am sure what the source of the error is. Essentially, when running org-capture (and also during ...
0
votes
0answers
254 views

The Application Emacs is Not Open Anymore (macOS High Sierra)

I am using Emacs (25.2.1) on macOS High Sierra 10.13.2, and when trying to open a simple .txt file using Emacs as the editor, I get the error "The application Emacs is not open anymore". Details: ...
1
vote
0answers
99 views

`<dead-grave> is undefined`

for a few month, I use Emacs for Latex, and I am French. today (for the first time) when I use C-c ` to see my errors, Emacs answers <dead-grave> is undefined I try to add in my .emacs (...
0
votes
2answers
81 views

Bad sexp error on custom diary function

I've created a diary function to allow me to record cyclic events. So something like (diary-limited-cyclic-weekday 8 '(0 3 6) 01 01 2018) will create an event for every Sunday, Wednesday, and ...
1
vote
1answer
188 views

Bindings for source code when debugging in gdb/gud

We can define a bunch of bindings for gud-mode through gud-mode-map. But it seems these bindings only hold when the active window is one of the dedicated gdb windows (or simply the comint window if ...
1
vote
0answers
176 views

Is it possible to debug Django from gud-pdb?

Brand new to gud/pdb and I am trying to run the Django development server from emacs. I can't seem to set breakpoints that affect the running server, though. I am invoking PDB with M-x pdb, then ...
2
votes
0answers
165 views

Emacs sometimes fails to save files

I'm experiencing a weird problem with Emacs on Windows where sometimes, after a while, the current buffer I'm in throws an error when attempting to save the file. I can't seem to reliably reproduce ...
1
vote
0answers
81 views

Emacs really laggy on prog-mode

I noticed Emacs was really laggy on any mode derived from prog-mode two days ago. Before that, everything was fine. I can navigate on a 1000+ lines org-mode file without problem, but I can't even type ...
5
votes
1answer
2k views

How to fix “Symbol's function definition is void: org-babel-get-header”

How do you trouble shoot this? (trying to run a sh block async) #+BEGIN_SRC sh /tmp/7.sh ...
1
vote
1answer
193 views

How to issue commands to pdb?

I have been trying to use pdb to debug my Python program, however whenever I get to this screen I don't know what to do. Usually when I use pdb I just type commands after (Pdb), but when I try to do ...
0
votes
0answers
32 views

Unable to run browse-kill-ring

After installing the browse-kill-ring package under Emacs 24.5.1, I get the following error when running the browse-kill-ring command: font-lock-set-defaults: Wrong type argument: symbolp, (font-...
0
votes
0answers
46 views

Detect variable use in an elisp function at run time

I try to understand a piece of elisp source code, with many nested and conditional functions calls, and I would like to know if a particular variable is used (and, if so, where in the code) at run ...
1
vote
1answer
74 views

A single Key Binding for several commands

I want to set a key binding to both open and close nodes in origami-mode. This is my attempt (require 'origami) (defun open-close-node () (interactive) (origami-open-node) (origami-close-node))...
4
votes
1answer
442 views

How to set gud gdb -i=mi not to replace current buffer?

When using gdb -i=mi to debug a program, I typically split the window into two buffers vertically. But every time my program prints something gud automatically replaces my source code buffer with I/O ...
0
votes
0answers
28 views

Can't navigate between lines with mark set

I really don't know what is is, but suddenly whenever I set mark (C-SPC) and either go up or down a line, I lose the mark. I can, however, get to the next line preserving the selection via, e.g., C-e ...
1
vote
0answers
51 views

Edebug REPL / IELM

I toggled edebug-defun on a function I'm studying. Once the debugger kicks in, how can I fire a REPL with access to the symbols being debugged?
3
votes
1answer
71 views

(delete-backward-char) needs an argument?

I have written a function to yank a selected region n times. I get a warning however because of the (delete-backward-char) although it seems to work. Does the (delete-backward-char) need an argument? ...
0
votes
0answers
114 views

Emacs hung with Error running timer 'blink-cursor-start'

I just installed a fresh Ubuntu 17.10 on a Dell XPS 15, and then installed Emacs from the repos with apt-get in the normal way. The moment I start Emacs, I get the error message Error running timer '...
0
votes
0answers
111 views

Slow Emacs at editing elisp files

When editing .el files my Emacs is very slow. The larger the file, the worse it behaves, it is especially visible while scrolling or using autocompletion of any kind. It becomes pretty visibly slow at ...
2
votes
1answer
128 views

Obtaining a backtrace on batch invocation of Emacs?

The only way I know of printing a backtrace for errors in batch invocation of Emacs is by setting debug-on-error inline like so: $ emacs -batch --eval "(setq debug-on-error t)" -f "my/foo-function" ...
-1
votes
0answers
41 views

Is there a way to see what program emacs was trying to access?

So I'm working with auctex and a problem I have is whenever I open a tex file emacs will open a shell prompt telling me C:/program not found. Now I know how to fix this issue of the program not being ...
1
vote
1answer
1k views

C-x C-f results in the error message: “Wrong type argument: commandp, counsel-find-file”

I opened Emacs, and executed C-x C-f. A beep sounded and the following message appeared in the status line: Wrong type argument: commandp, counsel-find-file All I wanted was to open an existing file....
4
votes
1answer
2k views

Wrong number of arguments on lambda key binding

I am not able to figure out what is wrong in this elisp form: (define-key ggtags-mode-map (kbd "M-.") (lambda () (interactive) (ggtags-find-tag-dwim) (recenter))) I keep getting this ...
0
votes
0answers
163 views

toggle-debug-on-error only works for the first error, how can i fix this?

when I enable debug on error it works perfectly the first time. when I go and fix my error and rerun my function debug on error no longer triggers for new errors. Is there a way to enable it so ...
1
vote
0answers
77 views

How to debug hanging emacs-async command?

I'm trying to set up a function running on my timer to refresh my org-gcal files by using the emacs-async library as follows: (async-get (async-start `(lambda () ,(async-inject-variables "...
2
votes
1answer
441 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 ...
3
votes
0answers
315 views

Display all local variables within a edebug session

When using edebug one can get a local variable by command describe-variable (C-h v), but are there any ways to display all local variables? For example in Python you can call locals() in a pdb ...
1
vote
1answer
151 views

Tern stopped working! Request failed: ((wrong-type-argument url nil))

I just upgraded yesterday emacs from version 25.2 to 27.0.5. Now I am encountering this problem, any idea of how to fix it? This happens in some tern functions I try to use: tern-get-docs, tern-ac-...
0
votes
0answers
200 views

Error when initializing Emacs

This is what I get when starting Emacs from terminal with emacs --debug-init. I don't know the reason why emacs suddenly started to not working. Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
1answer
345 views

Debugging emacs 24.5 slow startup (WSL)

I'm running emacs24-nox on Ubuntu trusty on Windows Linux Subsystem, and I'm trying to figure out why the startup time is slow. I've inspected the startup with strace and found two calls to poll that ...
-1
votes
0answers
135 views

can not use 'package-delete' to remove package

when I use package-delete to delete some unused packages then I restart and every packages I delete above are appearing in the package list is anyone encountered this situation?
1
vote
1answer
62 views

Emacs 25 function error

Recently I upgraded my emacs from 24 to 25.3.1. After the upgrade, the following code does not work anymore: ;;================================== ;; Wrap Query Replace ;;====================...
1
vote
1answer
36 views

What does `#[0` (hash angle bracket 0) mean in the elisp debugger?

When using the debugger I get lines like the following in the stack trace: #[0 "\302\303!\210\300\211\207" [describe-input-method this-command helm-mode 1] 2 "\n\n(fn)"]() I have no clue what the #[...
0
votes
1answer
38 views

Need help to debug an issue with query-replace command

The query-replace command used to work perfectly for me. Recently, it fails with a symptom like this: [updated] Assuming the code looks like: (for example) set_flaag(var1); set_flaag(var2); Now I ...
2
votes
1answer
182 views

How to use NSTRACE when debugging

I would like to use NSTRACE to see its built-in messages, and create new ones, at various locations within nsterm.m. I imagine/guess that enabling NSTRACE needs to be done when configuring Emacs and ...
0
votes
0answers
45 views

how to debug who move cursor

I have very annoying problem, after I run M-x compile time to time cursor jump from middle of buffer to the first line. I want to find out culprit (I found mode who responsible for this, but I want ...
0
votes
1answer
552 views

doc-view not working with emacs 25.2.1. (x86_64-w64-mingw32)

I am definitely no newbie and I think I now followed every little advice I could find online, and after 2 days doc-view is still not working :-( (it works fine on my older laptop under windows 10) On ...
0
votes
2answers
126 views

Error encountered when adding melpa to package-archives

I'm using emacs 25.2.1 (built from source). A strange problem happened after I tried to configure it for editing tex files. The suspicious config file content is listed below. (require 'package) (...
1
vote
2answers
71 views

How can I debug a function that performs most work in a temporary buffer?

I've been able to do this before, but I can't remember the 'recipe' of sorts. Say I've got the following function: (defun fancy-stuff () (with-current-buffer (get-crazy-process-output) (do-...
0
votes
1answer
128 views

emacs org-mode error during installation in windows

While I try to install org-mode using M-x package-install RET org RET, I am getting the following error. I am new to both emacs and org-mode and using Windows 10. Debugger entered--Lisp error: (void-...
2
votes
1answer
465 views

Emacs lisp throwing error when using spell check

I am trying to configure Hunspell in my emacs running in windows. When I type M-x ispell-buffer, I get the following error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
0
votes
1answer
80 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, ...
1
vote
2answers
86 views

Emacs directory is not readable on Ubuntu

When I start Emacs 25 on Ubuntu, I get this message: cannot open load file permission non accordée , mode-util With emacs25 -debug I've got: Warning: Lisp directory '/usr/share/emacs/25.2/lisp': ...
1
vote
0answers
142 views

How to debug a(n) .emacs that doesn't work correctly, but also doesn't throw any errors? [closed]

I currently have an Emacs/AucTeX setup where emacs --debug-init doesn't throw any errors, but things still don't work as expected. This being the case, I don't really know how to debug my .emacs file ...
0
votes
0answers
172 views

Help with debugging emacs, when opening routes.rb from rails applications

I'm using emacs for my every day tasks, I started more or less 4 years ago, and now I'm very happy with emacs. maybe I have a lot of plugins working together. This is my-ruby configuration file I ...
1
vote
1answer
303 views

Connect to running Python pdb from code buffer

How can I connect the standard Emacs programming debugger (is this GUD? I don't know) to the running Python application's debugger? When developing large Python applications, the Python pdb debugger ...
1
vote
1answer
106 views

Poor's man way to debug font-lock matcher functions?

I was told on Reddit that font-lock-studio will help me debug a matcher I was working on, however, I find myself with one more problem than before as I need to learn edebug and also grasp how to debug ...
0
votes
1answer
118 views

Symbol's function definition is void: pdf-tools-install after succesfull Installation with nor error messages

I tried to install pdf-tools under emacs 24 and Ubunt 16.04, like I did it several times succesfully. But now I get the error messages: Symbol's function definition is void: pdf-tools-install PDFs ...
-1
votes
1answer
62 views

why is save-buffer asking for a chmod?

All of sudden, XEmacs 21.4.22 starts asking whether it should chmod a+x $f everytime I try to save a buffer that is in Shell-script mode. Switching it to fundamental-mode stops that behaviour. ...