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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

3
votes
1answer
32 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-...
7
votes
3answers
56 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)
1
vote
0answers
43 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?
2
votes
0answers
183 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
35 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
2answers
44 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
1answer
43 views

Debugging a function called when hovering with the mouse over an org link

I am trying to debug a function called when hovering with the mouse over an org link. For example, I instrumented bibtex-completion-apa-get-value with edebug-defun. However, when I hover over an org-...
6
votes
1answer
114 views

Clearing/removing all breakpoints

Is there a mechanism for clearing all breakpoints (remove instrumentation en masse) so as to avoid the need to manually run eval-defun on each instrumented function's definition?
0
votes
1answer
37 views

How can I use edebug with cl-block?

Given the following function using cl-block: (defun wh/with-block (x) (cl-block 'foo (+ x 1))) I can evaluate it, but C-u M-x edebug-eval-defun gives an error: edebug-syntax-error: Invalid ...
1
vote
1answer
30 views

edebug-defun indicates a malformed cl-loop

The following code evaluates successfully using eval-defun and runs as I would expect: (require 'cl-lib) (defun my/sample-function () (let ((my-ht (make-hash-table))) (puthash :a 1 my-ht) (...
1
vote
2answers
201 views

Tracking down a write to a variable

Something setqs desktop-dirname to nil after my "init.el" is loaded. I want to track down the offending code. Just before the end of "init.el", desktop-dirname is correctly set. I checked run-hooks ...
1
vote
0answers
43 views

How do I teach edebug to only evaluate some macro arguments?

Currently, edebug doesn't understand the ->> macro in dash.el. (defun foo () (->> (+ 1 1) (+ 2) (* 3) (format "%s"))) C-u M-x edebug-eval-defun followed by M-: (...
2
votes
1answer
104 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 ...
9
votes
2answers
806 views

How to cancel `edebug-defun`?

How do I undo the effects of edebug-defun? In other words, how do I rescind the directive that causes edebug to enter debugging mode when a particular function is invoked? Also, I'd really like to ...
2
votes
1answer
84 views

Break on all errors in edebug

How can I make Emacs break on an error, even if the error is being handled somewhere? In my current scenario, the setup of a major mode is modifying the buffer and I want to find out why (and then ...
2
votes
2answers
38 views

edebug-defun at compile-time or at eval-buffer time?

While I am developing some elisp package I find myself edebug-defun'ing the same critical functions foo-some-mess and bar-more everytime I modify them, or everytime I load the code after compiling. ...
4
votes
1answer
104 views

Delete breakpoint set using edebug-defun

I set break-point in function (add-hook 'c-mode-common-hook (function (lambda nil (if (or (string-match "llvm" buffer-file-name) (string-match "nvvm" buffer-file-...
2
votes
2answers
77 views

Get actual buffer name from backtrace buffer?

I have a buffer foo.el with some invalid code (bar) If i run M-x eval-buffer, with debug on, it show this in backtrace buffer Debugger entered--Lisp error: (void-function bar) (bar) eval-buffer(...
7
votes
0answers
354 views

Edebug orgmode source code blocks with input variables

What is the standard method to debug emacs-lisp orgmode source code blocks with input variables as header arguments? I found the hacky solution to insert the following snipped in front of a source ...
5
votes
3answers
294 views

Edebug: instrument function without setting breakpoint?

If I have a buffer with the contents (defun foo() (interactive) (bar) (message "foo")) (defun bar() (interactive) (message "bar")) ...and call eval-buffer with edebug-all-defs set to t, ...
1
vote
0answers
83 views

Edebug step-in throws error

(error "You must be before a list form") I instrument a function in emacs. Now, this function is calling some other function. I try to step into this new function using the shortcut key i (step-into-...
14
votes
2answers
2k views

Show line number on error

Say that emacs throws some error that I don't understand. Or maybe the error says "Symbol's value as variable is void: modes", but there are many occurrences of the symbol modes in my code, so I need ...
7
votes
3answers
272 views

How do I edebug a function defined in a use-package block?

Here is a minimum working example to demonstrate the problem, you will need to have the use-package package installed: (use-package ido :config (progn (defun dummy/function () (...
2
votes
1answer
154 views

Can I toggle fringe-mode when entering / exiting edebug?

Paraphrasing a question I previously asked on SuperUser because, IMO, the answer found there does not resolve the issue. Question For the most part I prefer to disable Emacs' fringe. (I customize ...
5
votes
0answers
62 views

In what circumstances will edebug produce different behaviour?

I'm trying to debug this julia-mode indentation issue using edebug. The elisp I'm running is here and the bug only occurs on Emacs 23.3. TAB is bound to julia-latexsub-or-indent. I can reproduce the ...