We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
45 views

magit commit does not permit adding a gpg signature

I am failing to run gpg to sign commits, after doing so successfully before an upgrade to Mojave and an upgrade to Emacs. (I am not sure when I lost the ability to sign files in the past year.) When ...
0
votes
0answers
14 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
45 views

How to navigate stack frames in Emacs debugger?

I'm trying to debug the infamous Unrecognized entry in undo list undo-tree-canary, and after having Emacs debugger triggered on error, I want to move back and forth between stack frames and to examine ...
0
votes
0answers
34 views

How to file bug report about frozen emacs

Here what I have MacOS Emacs started with $(which emacs) --daemon using emacs mostly in terminal with alias emacs='emacsclient -nw' and then emacs ~/foo.txt to edit files So right now my emacs ...
1
vote
1answer
39 views

How to debug frequent emacs feezes

I have a complex Emacs setup. I love it, except for that fact that it freezes a couple of times a day for me. I have a few suspicion: I use you-complete-me for auto-completion in c++ and it may be ...
7
votes
3answers
92 views

Is it possible to edebug a lambda returned by a function?

For example, (defun create-function (number) `(lambda () (* ,number ,number))) (defalias 'square-two (create-function 2) "adds two") (square-two)
4
votes
0answers
178 views

Is there an ELISP decompiler?

I'm thinking of writing one so that when I get those horrible tracebacks from bytecode files, I can better see where I was at. Is there one already? Are there any other tools for showing an error ...
2
votes
1answer
122 views

Unable to load bookmarks list on emacs master

Whenever I try to execute bookmark-bmenu-list (which loads the bookmarks file), I get the following error: bmkp-multi-sort: Symbol’s function definition is void: bmkp-info-cp. I am running on emacs ...
5
votes
1answer
580 views

Debug pytests in emacs

I try to debug my pytest-cases like this: import pytest def test_something() ... ... pytest.set_trace() Then, i execute the tests by running elpy-test. The test starts to run and stops ...
3
votes
1answer
69 views

How to force `condition-case` to activate the debugger

Often times I need to debug code wrapped in the BODYFORM of condition-case; however, the debugger is suppressed even though I have debug-on-error set to t. The doc-string states that we can add debug ...
1
vote
1answer
151 views

Debugging — debugger-mode — how to highlight the culprit

Let us take an example such as (max 0 (/ 8 0)) -- the problem is the argument to / -- i.e., DIVISORS cannot be 0. The debugging output looks like this: Debugger entered--Lisp error: (arith-error) /...
2
votes
1answer
161 views

Emacs is hanging on almost every word I type. How to identify the problem?

So, that's it. I am writing a lot of LaTeX, and lately emacs is hanging (becoming unresponsive) on almost every word I type, and I have to press C-g to regain control. It started happening around 4 ...
1
vote
1answer
119 views

Debugging erratic error

The following error appears every other time that a .tex file is opened: Wrong number of arguments, setq, 3 Enabling toggle-debug-on-error gives this backtrace. How to go about debugging this? I've ...
4
votes
2answers
812 views

how to start daemon with `--debug-init` or equivalent debugger?

summary problem I'm trying to debug a problem that involves an Emacs config and daemon startup. But when I run emacs --daemon --debug-init from a console, the spew ends with Loading desktop from /...
3
votes
1answer
652 views

Autocompletion of a variable name while Python debugging

Suppose I want to debug Python script in Emacs. M-x pdb run pdb like this pdb script name.py. Next I'd like to examine a variable. I type p and first letters of a variable name, then press Tab and ...
3
votes
0answers
314 views

set breakpoint while in debugger?

Is it possible to set a breakpoint on an arbitrary line while already established in browser()? As a use-case: if I debug(myfunc) and while in Browse[2]> ... I realize that I need to jump forward ...
4
votes
1answer
142 views

Stack reflection in Emacs Lisp?

Are there reflection methods available in elisp to examine the stack without invoking the debugger? For example: Get the calling/callee function Get the function call stack Get the (longer) nested ...
2
votes
1answer
242 views

Signaling a breakpoint in Emacs Lisp

Many languages have a mechanism to signal an attached debugger to pause or break. For example in JavaScript this is done using the debugger keyword. In others like C# or Visual Basic the signal is ...
1
vote
1answer
533 views

Debug org-mode link to PDF displayed with PDF-Tools

Emacs 24.5 on openSuse Tumbleweed. *.org file with a link to a pdf: [[.\somefile.pdf::2][myfile p 2]] I'm using the PDF Tools to display a PDF in Emacs. What I expect is that page 2 of the PDF will ...