Questions tagged [debug]

51 questions
3
votes
1 answer

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 to the list of handlers, but I didn't find a…
lawlist
  • 19,106
  • 5
  • 38
  • 120
2
votes
1 answer

how to load source file for debug?

BTW, you will get a more complete backtrace if you load the source file instead of the byte-compiled file, for the code that defines run-python. (https://emacs.stackexchange.com/a/20265/12031) How do I load the source file for debug…
eugene
  • 489
  • 1
  • 6
  • 11
2
votes
1 answer

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 weeks ago. At first it happened less frequently…
Jeff
  • 537
  • 4
  • 13
1
vote
3 answers

--debug-init not showing enhanced information

I want to debug some problems with my elisp files. But emacs --debug-init is not revealing anything more than if I simply run emacs wint the command emacs. The command emacs gives a warnings window with the text Warning (initialization): An error…
Dilna
  • 1
  • 3
  • 11
1
vote
1 answer

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 hanging on RPC call to the YMCD server. I use…
Amit Prakash
  • 111
  • 2
1
vote
1 answer

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) /(8 0) (max 0 (/ 8 0)) eval((max 0 (/ 8 0))…
lawlist
  • 19,106
  • 5
  • 38
  • 120
0
votes
0 answers

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 client is stuck. The daemon is acting funny too. So I…
american-ninja-warrior
  • 3,903
  • 2
  • 24
  • 44