Stack Exchange Network

Stack Exchange network consists of 174 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

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

1
vote
1answer
23 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>......
0
votes
0answers
34 views

Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 4) 0)

Please excuse my low-level terminology. I had been using my desktop that runs Ubuntu to run Emacs. My configuration was set up to load an org init file containing my packages. It was loaded from my ...
1
vote
1answer
21 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
votes
1answer
24 views

how to get region start and region end from the whole buffer as variables to call another func

(defun buffer-to-shell() (let (buffer mark-whole-buffer))) (shell-command-on-region start end "sed s/foo/bar/") ;; start, end not defined ) As you might see there are undefined variables start ...
0
votes
0answers
25 views

Running gdb+tui in emacs. Is it possible?

I am trying to debug a c++ program in emacs. New to both emacs and gdb. Here is what I do -- M-x gdb gdb tui enable Results in Cannot enable the TUI: terminal doesn't support cursor addressing ...
0
votes
0answers
40 views

emacs debugging project like (vscode or eclipse)

I use Emacs for project development in Go, the only thing that forces me back to VSCode is for graphical debugging. Is there any package that will allow me to do graphical debugging like visual studio ...
1
vote
1answer
36 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 ...
0
votes
1answer
25 views

Identify which mode is throwing an error

I am attempting to edit a file. Emacs is preventing me from making the edit, and throwing: Args out of range: #<buffer user.action.js>, 4965, 17721. It is completely not obvious to me where this ...
0
votes
0answers
10 views

helm-comint-input-ring - get error: shell-mode-map

windows 10, emacs 26.1, helm 3.0 I use C-c C-l (comint-dynamic-list-input-ring) I get something like this: But I don't like this. I want to use helm-comint-input-ring. I want to get something like ...
0
votes
2answers
44 views

When I start Emacs: Symbol's value as variable is void: shell-mode-map [duplicate]

System: Windows 10, Emacs 26.1, Helm 3.0 In my init.el: ;; Shell commands history (define-key shell-mode-map (kbd "C-c C-l") 'helm-comint-input-ring) When I start Emacs I get the following error: ...
1
vote
0answers
16 views

How to open 3 emacs windows when debugging using gdb

I am debugging a program that outputs 8 or more lines of display and requires input. So my IO window has to be say 10 rows or so in height. But I also want to see the source code AND of course the ...
0
votes
0answers
23 views

Can't get pdb nor realgud:pdb working

I run pdb which command python -m pdb pom.py but I only get single line of output Current directory is <current working directory>. When I press q and RET, the buffer changes to pdb with ...
0
votes
0answers
23 views

Error While Starting Emacs

I am just getting started with emacs and every time I run emacs I get the following message: An error occurred while installing font-lock+ (error: (wrong-type-argument package-desc nil)) Can anyone ...
0
votes
0answers
27 views

Problem opening files

I am having some problems with emacs on windows 10 (GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30). Sometimes when I try to open an org file emacs does not opens it and rewrites it ...
0
votes
1answer
12 views

How to create a customized translation table when using the command translate-region?

When using the command translate-region, the command asks to use which table. There are already some predefined tables (by pressing TAB) such as cp51932-decode cp51932-encode eucjp-ms-decode ...
0
votes
0answers
40 views

(wrong-type-argument number-or-marker-p nil) when calling run-python

When I call run-python from the package python.el Emacs displays me the following error: error in process filter: Wrong type argument: number-or-marker-p, nil To investigate further I called toggle-...
1
vote
0answers
86 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
52 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
2answers
102 views

Debugging a recalcitrant eldoc function

I'm using SLIME and common LISP (SBCL) for some weekend hacking. I've just upgraded to emacs 26.1 on Mac OS X 10.13.5. Now I've run into a problem with the setup where I'm suddenly getting: error ...
1
vote
2answers
73 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 ...
0
votes
1answer
63 views

Unable to set relative line number as a default

I am trying to setup Emacs to have relative line numbering enabled by default via this plugin. According to the readme file Relative line numbering should already be enabled by default (by ...
1
vote
0answers
262 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 ...
0
votes
0answers
82 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
26 views

Debug missing keystrokes

Something has happened to my Emacs environment that causes keystrokes to be dropped occasionally. It seems to happen more often in isearch, or after a week and a couple hundred buffers open. The ...
0
votes
1answer
257 views

Wrong type argument: stringp, nil

I am essentially trying to build a list of strings, where each of those strings in turn are built by their own functions. However, I get the following error when the code is evaluated: Wrong type ...
2
votes
1answer
38 views

Define a function to execute multiple commands

Here is part of my init.el: (defun xx-devanagari-script () (interactive) (save-excursion (face-remap-add-relative 'default :family "Lohit Devanagari") (text-scale-increase) (text-...
1
vote
1answer
113 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
134 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
0answers
150 views

How can i resolve tramp-error: Not a Tramp file name: using a /docker address?

Trying to set up .dir-locals to use a custom python interpreter inside a container so i can use run-python and get the REPL inside the container. I have this setup which seems to partially work in ...
0
votes
1answer
125 views

override “C-SPC” set-mark-command

I'm using expand-region and experimenting with it trying to find the right key binding As per expand-region README it binded to (global-set-key (kbd "C-=") 'er/expand-region) But I'm not satisfied, ...
1
vote
0answers
204 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?" ...
1
vote
2answers
63 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 ...
0
votes
0answers
33 views

ECB causes error “Completion is not active in the minibuffer”

Emacs 25.3.1 on Fedora 26, with ecb 20170728.1221 installed. After activating ECB with ecb-minor-mode, any attempt to use any kind of completion gives me a completion buffer in place of the ...
0
votes
0answers
43 views

C-S-a doesn't select text to the line beginning

The Key combination Ctrl + Shift + a doesn't work in my GUI-Emacs to select a region from the position of pointer to the line start. Doing C-h k and the above key combination shows no documentation.
3
votes
1answer
33 views

Completion in edebug-eval-expression

Is there a way to get completion-at-point to work inside edebug-eval-expression (i.e. similarly to the way it works in eval-expression)? Presently, when I press tab inside of a call to edebug-eval-...
4
votes
0answers
120 views

list of current variables in a buffer for Python code

I would like to find a way to reproduce the "Workspace" of Matlab or the equivalent "Variables" window of the awesome pudb debugger directly in emacs for python code: it is a window which details the ...
0
votes
0answers
29 views

Stepping through source in emacs, line pointer will not advance past file open line

I have just started using emacs for debugging and I have two questions. First, I am working in gdb-many-windows mode. I have set a breakpoint and it gets properly hit in the source code window, ...
3
votes
1answer
77 views

Fixing wrong-type-argument to looking-at in Emacs 25 js-mode on large files

When using js-mode (or js2-mode) on Emacs 25.1 (in Debian 9) to edit some large files, any attempt to insert text after some "random" point in the file fails with an elisp stack trace: Debugger ...
0
votes
0answers
67 views

Debugging with gdb does not allow user to enter multiple console inputs

I wrote the following C++ program in Emacs named check_emacs_debug.cpp #include <iostream> int main() { for(int i = 0; i < 10; ++i) //Breakpoint { int num; std::...
0
votes
0answers
555 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
219 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
205 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
60 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
48 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 ...
0
votes
1answer
96 views

Refreshing package archives fails with (wrong-number-of-arguments (1 . 1) 0) error

After not having updated my emacs packages for a while (a few months), I decided it was time to do it. I'm running GNU Emacs 25.3.1. Running M-x package-refresh-contents fails however with the ...
0
votes
1answer
128 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
143 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
83 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
70 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
1k 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 ...