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

dap mode python not work

I'm trying to enable dap-mode for python. I use Emacs doom. I use dap-mode +lsp with debugpy. After installing dap-breakpoint-toggle, I run dap-debug-last and get: error in process filter: Server[1] ...
0 votes
0 answers
11 views

Setting breakpoints using emacs python pdb

So I often use the emacs pdb tool (started with M-x pdb) to debug python code. There is one small issue I don't know how to deal with. When I start pdb to run a specific file the file appears to open ...
  • 101
0 votes
1 answer
32 views

Why is debug-on-error always enabled at startup?

Whenever I start up emacs, debug-on-error is enabled. I can't figure out why, there's nowhere where I explicitly enable it. Is there any way for me to figure out where it's coming from?
  • 503
0 votes
0 answers
19 views

Semantic fails while processing system header

I have Emacs 28.1.90, locally built, with cedet and semantic as built-in packages. However, when i tried turning things on (using semantic for auto-completion with company), i started getting eroors ...
  • 479
0 votes
1 answer
88 views

Problem debugging on dap-mode

I am new to emacs and I was following this tutorial to configure lsp-mode: https://emacs-lsp.github.io/lsp-mode/tutorials/CPP-guide/ But dap-debug does not work. Everytime I try to debug, it doesn't ...
1 vote
0 answers
22 views

A new version of a package introduced unexpected behavior - how to discover the source of the issue?

My issue There is a small behavior in org-mode that I've grown accustomed to: if there are multiple headlines of the same level (e.g. 3 stars) and they are all folded (i.e. their contents are not ...
  • 197
0 votes
1 answer
27 views

Emacs on MacOS 12.5+: Commands failed with 127

I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS ...
  • 101
0 votes
1 answer
22 views

emacs opens unwantedly with some git commands

I have a very strange problem that I cannot work out. Emacs opens if I run some git commands such as git log, git branch, git show. Some git commands behave normally and do not open emacs, such as git ...
0 votes
0 answers
27 views

`C-x C-;` freezes emacs

This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
0 votes
0 answers
9 views

Compilation buffer fontifies some parts

Here is a normal compilation message: Here is what I have: When I describe-char [...] I have the following description: position: 191 of 752 (25%), column: 0 character: F (...
  • 230
0 votes
1 answer
28 views

:documentation void-function error

The following backtrace problem in being produced but cannot identify the problem correctly. Debugger entered--Lisp error: (void-function :documentation) (:documentation (concat "Version and ...
  • 383
0 votes
1 answer
13 views

org-agenda stuck displaying last file in org-agenda-files list

For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
1 vote
1 answer
33 views

Bookmark Plus and pdf-tools/pdf-view error

I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, ...
1 vote
1 answer
23 views

Enabling --debug-init from within .emacs

Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
  • 383
0 votes
2 answers
50 views

How to fix byte compiler warnings for "Unused lexical variable" in a macro?

I have a macro and a function which uses it: (defmacro oauth2-auto--query-case (&rest cases) "Handle HTTP queries based on the keys present in ‘query-alist’. ‘query-alist’ is a free ...
1 vote
1 answer
26 views

Emacs makes my files not exist in Parcel

new Emacs user (on Windows) here! So far Emacs looks really cool! I'm developing website using Parcel and every time I save my main .html file with Emacs it breaks my development server. HTML file I ...
  • 13
1 vote
2 answers
72 views

Debugging a hook function

I have this code: (add-hook 'org-mode-hook (lambda () (when (string-match "notes\\.org$" buffer-file-name) (face-remap-add-relative 'default :background "yellow"))))...
  • 35
0 votes
1 answer
46 views

Getting prefix as argument

With this function, I get the error test: Wrong type argument: stringp, 2 Is it good to pass prefix this way? Thought that the argument prefix would be filled up with the prefix value. (defun test (...
  • 383
-1 votes
2 answers
51 views

How can I enable flymake to collect information about problems in an Elisp buffer?

How can flymake be enabled on emacs-lisp code to collect information about problems in the buffer? Have done (flymake-mode) to enable it. But getting the error Warning (flymake): Disabling backend ...
  • 383
0 votes
0 answers
94 views

Wrong type argument: filenamep error after switching to Emacs v28

I use emacs in -nw mode on a computer cluster, and was using Emacs v25. I asked my sys admin to install a newer version (27 or higher) because global-display-line-numbers-mode was apparently not ...
1 vote
1 answer
48 views

How to debug my init.el if --debug-init does not help?

Despite having --debug-init in .xinitrc (exec dbus-launch --exit-with-session emacs --debug-init), I'm not getting any leading details on this error. Error in dotspacemacs/user-config: Symbol’s value ...
  • 629
1 vote
1 answer
99 views

Meta key getting stuck in Windows 11 WslG, how to release meta when switching to frame

In Windows 11 WSL Ubuntu 20.04, I am using the new WslG feature which allows native gtk apps to run smoothly on windows (and I compiled Emacs 29 with the --with-pgtk option when installing), but I am ...
  • 213
0 votes
0 answers
63 views

"Error running timer file missing doing vfork" Emacs dap debug C++

I've c++ cmake project beginning-cpp20. The project structure as as below - $ tree . . ├── CMakeLists.txt ├── launch.json └── meetingcpp.cpp The contents of CMakeLists.txt is - cmake_minimum_required(...
0 votes
0 answers
42 views

Error on multi buffer rendering

I had been using emacs since 5-10 years ago and never had any single problem, I used to use Vanilla emacs with some configurations as Sebastiencs's Sidebar, now I'm using Doom emacs with treemacs. In ...
1 vote
1 answer
36 views

Setting filename for saving buffer

I am using the following function workbench. How may I resolve the error if: Wrong type argument: sequencep, 1 when calling M-x workbench? With backtrace I get Debugger entered--Lisp error: (wrong-...
  • 383
2 votes
0 answers
39 views

Org mode babel hangs with python C-c C-c

When I C-c C-c in a Python code block in Org mode: #+BEGIN_SRC python :results value :session a = 4 a + 13 #+END_SRC It hangs with a message: Warning (python): Your ‘python-shell-interpreter’ ...
  • 121
0 votes
1 answer
76 views

command-execute error with straight.el

I have just tried to setup magit using straight.el in my init file as follows: (use-package magit :straight t :bind ("C-x g" . magit-status) :commands (magit-status ...
0 votes
1 answer
29 views

Emacs Social Sciences Starter Kit - Not Loading

I am trying to install Kieran Healy's Emacs Social Sciences Starter Kit. I think I followed the instructions meticulously (details below) but – to cut to the chase – when I launch emacs, I get vanilla ...
1 vote
1 answer
51 views

"Invalid version list `(4 5 -4 414)'" when running `M-x package-list-packages`

When following a suggestion for solving another problem, I'm doing M-x package-list-packages. However, that gives me the error message Invalid version list `(4 5 -4 414)'. What does this mean, and ...
1 vote
0 answers
26 views

Some errors when customizing run-python

I want to make a complement to run-python in python-mode. Here is my snippet: (defun dpy-run-python () (interactive) (when (python-shell-get-process) (delete-process (python-shell-get-...
  • 11
0 votes
0 answers
41 views

How do I debug Tangled 0 code blocks?

This is a history of an unsuccessful attempt to fix tangling in my Emacs configuration. In frustration, I have removed the org-mode config and left the file that was a result of previous successful ...
0 votes
1 answer
49 views

AUCTeX error 127

I'm trying to call AUCTeX from Emacs and I'm now getting the following error (quote marks changed slightly to get code block below to work): Running 'TeX' on 'simple' with ''pdf/Users/myname/bin/...
  • 103
0 votes
1 answer
44 views

wrong-type-argument listp \357\273\277 when working with packages

I use Emacs 27.2 on Windows 10. Working with packages used to work, but now I am getting Failed to download ‘gnu’ archive., when calling for instance M-x package-refresh-contents. I tried M-x toggle-...
0 votes
0 answers
14 views

How do I view the entire call chain from a command?

I am facing weird issues from editing Kotlin code with LSP enabled with lsp-mode, in Spacemacs. Everytime I evil-yank and evil-mc-paste a line by yy followed by p, an empty line is pasted instead. The ...
0 votes
0 answers
68 views

How can I add a horizontal line (`\hline`) above the first table row when exporting to latex?

I want a table in org mode to meet two needs: When it is exported as latex, the result table in latex has the top horizontal line. like this: Can be used as input variable for R code blocks But it ...
  • 111
0 votes
0 answers
32 views

How to debug a bug in cl-generic.el?

While working on developing a fork of inf-ruby such as to use EIEIO and cl-generic in an approach, I've discovered what appears to be a bug in cl-generic.el. I'm testing this presently with GNU Emacs ...
0 votes
1 answer
29 views

context-menu-functions changing

Running emacs 28.1 whenever I use a mode derived from text-moe or prog-mode the value of context-menu-function is replaced. What is doing this and how can I stop it? The default is (context-menu-undo ...
  • 319
0 votes
0 answers
40 views

How to Debug Rust Executable with arguments in DAP-mode?

I did install dap-mode and configured it for Rust as instructed here and there. Although it looks like it is working, I have no idea of how to debug the executable with passed arguments.
  • 1
0 votes
0 answers
46 views

Side effects of global-set-key?

I have had (global-set-key [f9] 'compile) in my Emacs init file for many years. With this setup, hitting [f9] and doing M-x compile RET should run the same commands the same way, right? But today I ...
  • 161
0 votes
1 answer
38 views

How to log backtrace to a file instead of popping it up and blocking following backtraces

With emacs if there is a backtrace buffer open, new backtrace is ignored. I find it is unconvenient when I am trying to find out which function/hook changes a variable. I use debug-watch as described ...
  • 1,165
3 votes
1 answer
59 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
0 votes
2 answers
32 views

Editing Go(lang) code freezes PC

Everytime I open a golang file and start editing, (even a file with just the following in) package models import "github.com/gofrs/uuid" type Client struct { ID uuid.UUID `...
  • 131
2 votes
1 answer
47 views

org-publish: Wrong number of arguments: plist-get

I tried to configure org-publish with some html variables, but I'm getting this error let: Wrong number of arguments: plist-get, 3. I've debug-on-error enabled but doesn't show up the minibuffer. This ...
  • 29
0 votes
0 answers
43 views

"let: Symbol's value as variable is void" when loading .dir-locals

I have the following .dir-locals: ((nil . ((eval . (let ((project-root-dir (expand-file-name (locate-dominating-file default-directory ".dir-locals.el")))) (defun tokenize-...
  • 123
1 vote
0 answers
23 views

"fileloop-next-file: Read error: Is a directory" when running project-query-replace-regexp

Hitting this error when trying to run project-query-replace-regexp. The project I'm working under has git submodules, if that could cause any issues? (Redacted some of the directories and search ...
  • 163
2 votes
0 answers
39 views

Emacs sometimes freezes from PDFs

I'm currently using Emacs 27.1 running on Ubuntu 21.10. The problem I have is Emacs stop responding from time to time, but this only occurs when I open a PDF file or while I'm reading PDF books (...
  • 21
0 votes
0 answers
118 views

Bug in emacs evil?

I'm running into some trouble with emacs evil. I get the error (wrong-number-of-arguments (3 . 4) 2) and when I run debug I get the following message: Debugger entered--Lisp error: (wrong-number-of-...
0 votes
1 answer
47 views

While running "package-refresh-content" show me this. Why? Emacs 28.1

Debugger entered--Lisp error: (error "Location https//elpa.gnu.org/packages/ is not a url nor an absolute file name") signal(error ("Location https//elpa.gnu.org/packages/ is not a ...
0 votes
0 answers
90 views

"Wrong type argument" adding projects to treemacs

I'm just setting up Treemacs for the first time. I am using Emacs' built in project management (not Projectile) and ideally want Treemacs to always show only the current project. Currently, if I run ...
1 vote
1 answer
267 views

How does one fix the Warning (initialization): An error occurred while loading error?

What does this error mean: Warning (initialization): An error occurred while loading ‘/Users/brandomiranda/.emacs’: Wrong number of arguments: (3 . 4), 2 To ensure normal operation, you should ...

1
2 3 4 5
11