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
1answer
101 views

Why use the “and” in (funcall (and initial-major-mode))?

I came across this code today, and do not understand why the author used the "and" in it. As far as I can tell, these two lines deliver the same results and have the same functionality. The variable ...
2
votes
1answer
39 views

A possible incompatibility between `toggle-frame-maximized` and a mode using `visual-line-mode`

I have (toggle-frame-maximized) in my init file. If I enable the ospl-mode (btw very handy mode) given in the answer https://emacs.stackexchange.com/a/473/, then I minimize the frame, Emacs (GNU Emacs ...
2
votes
1answer
252 views

Debugging a “binding stack not balanced” bug?

I'm trying to figure out how to approach a bug I've run into. I assume it's actually a bug in Emacs, but I don't know the right way to make headway with it. In short, I'm getting the message "binding ...
2
votes
1answer
256 views

Make comint-mode behave more like term-mode

I am constantly getting frustrated with the GDB comint-mode buffer when using GUD. Somehow my cursor always ends up straying from the bottom of the buffer, and then my input is not interpreted how I ...
2
votes
0answers
71 views

Valgrind interface for emacs

Is there an interface similar to 'gdb-mi' for using Valgrind in emacs? What are some ways to use Valgrind inside emacs?
2
votes
0answers
83 views

Debugging in Unity3d with emacs?

I develop in Unity, and have been using emacs as my text editor for development. Debugging however has always needed to be done through monodevelop (and it crashes half the time while doing this). My ...
2
votes
0answers
106 views

Emacs/realgud/Python: How to display variables at each step?

Using emacs and realgud one can have a separate buffer that automatically shows where the program is currently stopped (by displaying that line of source code). Is there an easy way to get realgud to ...
2
votes
0answers
203 views

How to diagnose emacs hanging and 100% cpu on startup?

How can I diagnose this issue? I've tried using strace and I see the following that seems to be stuck in a loop: recvfrom(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., ...
2
votes
1answer
70 views

Halting Clojure debugger after pressing the Continue Command

I use Emacs with Cider to debug Clojure Code. After setting a breakpoint using the default debugging framework, there appears the list of debugging options one might execute shown in this Figure I ...
2
votes
0answers
642 views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
2
votes
0answers
421 views

debugging: how to optimize a RealGUD workflow

I code in Python and I my workflow uses debuggers (I coded for 8 years in Matlab). I develop numerical simulation codes: most of the time it returns a result, the question is: "Is the result right?" ...
2
votes
0answers
48 views

inhibit-read-only affects all buffers when *Backtrace* buffer is open

I use buffer-read-only as a safety measure for anything that is important. Recently, I have been debugging functions that use inhibit-read-only and I leave the *Backtrace* open to go about my ...
2
votes
0answers
61 views

how can I debug or fix slowness in org-cycle?

running org-cycle appears to hang sometimes. I've run M-x profiler-start <tab> ;; bound to org-cycle C-g ;; to cancel apparently-hung command M-x profiler-report and I see that a bunch of time ...
2
votes
0answers
504 views

init error: file missing - cl-generic after any time I edit settings.org file

I am using org mode to organize my various Emacs settings. Within my init.el file I just have (taking out initial comments): ;;; Code: (package-initialize) (eval-when-compile (require 'use-package))...
2
votes
1answer
61 views

eval-after-load and define-key of raise-sexp results in an error of “Unbalanced parenthesis”

(eval-after-load 'lisp-mode (define-key emacs-lisp-mode-map (kbd "C-c r") 'raise-sexp)) When above lisp is evaluated, it shows following error message. up-list: Scan error: "Unbalanced parentheses"...
1
vote
2answers
127 views

How to debug lack of response to a certain set of keystrokes?

Suppose I do a certain keystroke sequence in emacs, and nothing happens, even though I expect there to be a keybinding that would do something. This could be because: The keybinding is not actually ...
1
vote
1answer
210 views

How do I make a bug report or feature request against GNU Emacs? [duplicate]

I found this list at the emacswiki: FFI (foreign function interface). Would be great to have this in GNU. Enhanced Numerics. We sorely need this too. Apparently much better multimedia support (Of ...
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....
1
vote
1answer
1k views

“Symbol's function definition is void: org-agenda-skip-scheduled-if-done”

I've recently started using Org-mode, and when I last restarted Emacs, I got the error message Symbol's function definition is void: org-agenda-skip-scheduled-if-done. Upon opening Emacs again using --...
1
vote
1answer
2k views

How to solve “Autoloading failed to define function sml-mode”?

I have just install a version of emacs (GNU Emacs 24.5.1 i686-pc-mingw32) on a Windows 8 Machine. On trying to open an example SML file (Standard ML Language). An error occurred: File mode ...
1
vote
1answer
361 views

How to debug the “message” function on entry ?

While debugging a minor mode (separate issue), I wanted to generate a stack trace of the message function so I thought I would just enter M-x debug-on-entry RET message I was quite surprised to see ...
1
vote
2answers
134 views

How to fix org-dotemacs broken by latest update?

I'm sorry to have to ask this, but lisp debugging is not one of my strengths. For some time I've been happily using Joe Bloggs's somewhat hoary but useful org-dotemacs.el system to maintain my emacs ...
1
vote
1answer
38 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 #[...
1
vote
1answer
97 views

debug-ignored-errors --> suppress an annoying error/false-positives

In my emacs, i have set (debug-on-error t) to see the error's stacktrace. It is very helpful but for mundane errors, it becomes annoying... One such error is, Debugger entered--Lisp error: (error "...
1
vote
1answer
67 views

Need help with `expand-region`: Symbol’s function definition is void: org-outline-overlay-data

If I try to use er/expand-region but it fails with Symbol’s function definition is void: org-outline-overlay-data. org-version : Org mode version 9.2.2 In the release notes for the current org (9.2),...
1
vote
1answer
214 views

Wrong type argument: stringp, (“~/capture.org”)

I am setting up a few hydras, one of which should open a frequently accessed file. The following command works, if I bind a keyboard sequence to it: (lambda () (interactive) (find-file "~/capture.org"...
1
vote
1answer
40 views

Read-only text stops working after a while

This is a very strange issue and its cause is hard to determine. I often leave Emacs open for days, or even weeks at a time. My current emacs-uptime is 9 and a half days. That's pretty normal and ...
1
vote
1answer
199 views

emacs Aborted (core dumped)- centOS 7.0 emacs 25.3 — Please Help

Dear stackexchange users, I would really appreciate your help in fixing my issue. I am new with centOS 7.0 with less a year of experience. I was using emacs-24.3 until the following error came up, so ...
1
vote
1answer
209 views

emacs lisp error : Need a pre-parsed url

I'm trying to use tern with the latest version of emacs (27 : master branch) and I'm getting the following error : Request failed: ((wrong-type-argument Need a pre-parsed URL. [cl-struct-url http ...
1
vote
2answers
70 views

How to troubleshoot a key binding prompting for more key presses?

I have a function bound to Ctrl-b, this runs a command immediately, however after some time running emacs, pressing this binding shows text C-b in the message bar, prompting for other keys to be ...
1
vote
1answer
230 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 ...
1
vote
2answers
82 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-...
1
vote
2answers
103 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
1answer
349 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
128 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 ...
1
vote
1answer
95 views

Why does running my tests with ert-run-tests-batch-and-exit fail

I have written a few simple tests, when I run them on the buffer inside emacs everything passes. However, when I run them in batch mode as shown below, it fails. What can explain this? emacs -batch -...
1
vote
1answer
242 views

cadr wrong type argument listp

I have this code that used to work fine until today: (let* ((newest-pkg (cadr (assq 'org package-archive-contents))) (installed-pkg (cadr (or (assq 'org package-alist) ...
1
vote
1answer
461 views

“Wrong type argument: symbolp” on function usage

I am trying to use following code: (defun rust-save-and-build (mode) (interactive) (save-buffer) (setq tmp (shell-command-to-string (format "cygpath.exe -m %s" (buffer-...
1
vote
1answer
28 views

Construct window with list of keybindings for the Emacs Debugger

I always forget the keybindings for the Emacs debugger. I'd like to have a small window open at the same time the debugger window opens with a list of keybindings (I'm thinking of something that would ...
1
vote
1answer
186 views

How can I debug my init file using information from --debug-init? [closed]

I have my emacs setup as an alias in the bashrc as alias="emacsclient -t -s server alternate-editor=" in case this helps. The emacs version is 24.4.1 and AUCTeX is compiled from the git repo and was ...
1
vote
1answer
348 views

restclient errors “failed with code 111”

When I run GET http://localhost/ with restclient.el, I get the following error in the *Messages* buffer: GET http://localhost:80/] Contacting host: localhost:80 error in process sentinel: restclient-...
1
vote
1answer
35 views

Why doesn't Emacs accept keyboard input in timers? [duplicate]

I've managed to write a timer that reliably causes keyboard input not to be accepted until I press Ctrl-G. The issue is, I don't know what causes the timer to lock up, what the stack frame is when it'...
1
vote
1answer
23 views

Figuring out what plugin is messing with my input

This is a more general question so I would like to know how to actually debug something like this. Suppose that I have some plugin that does section completion as code is being written. For example ...
1
vote
1answer
32 views

Why is check-ert output cut at 70 characters column?

Sometimes when packaging emacs packages for Debian, I need to debug test failures. Then the debugging output is cut at 70 characters like in this bug report: https://bugs.debian.org/cgi-bin/bugreport....
1
vote
1answer
84 views

Problem debugging in `gud-mode' (M-x `gdb' with `many-windows' enabled)

I'm debugging a large codebase (written in C++). Everything works perfectly if I run gdb from a regular terminal as follows: $ gdb <program-name> Reading symbols from <program-name>......
1
vote
1answer
49 views

Unclear error message from a function call in my init file

With my Emacs 26.1 on my 10.13.6 Mac, I want Emacs to systemically open my file located at /Users/ewandelanoy/Documents/html_files/Printable/latinized_agreda2.txt with the mac-roman-mac encoding, ...
1
vote
1answer
231 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
1answer
72 views

Exporting org file breaks

I have a similar problem to the one asked here Exporting org file breaks when upgrading to orgmode 8.3, org-mode cannot export org files and raises this error: apply: Wrong type argument: listp, #("...
1
vote
1answer
146 views

I got error when using command yank

When I typed C-y to call yank, I got this. apply: Symbol's value as variable is void: n Debugger entered--Lisp error: (void-variable n) ad-Advice-current-kill( ... [interprogram-paste-...
1
vote
1answer
73 views

What is causing my javascript files to auto-format?

If I have a long line in a javascript file such as: let args = [options.loadRaw ? buffer : path.resolve(filePath)].concat(options.commands); At some point when I keep adding to that line, it auto-...