How to show Backtrace for emacs?
Asked Answered
N

1

6

I encounter an error:

scala-block-indentation: Wrong type argument: number-or-marker-p, nil

Whenever I click tab for indent in scala-mode.

I don't know where goes wrong in the code but want to fix it. However, I can only see this error in *Message* buffer without details. I tried to see this error in Backtrace but didn't know how. I tried (1) -debug-init to launch emacs (2) debug-on-entry command for scala-block-indentation but neither of them works.

Does anyone have ideas about how to enable BackTrace/Debugger for this function?

Notochord answered 28/12, 2012 at 9:43 Comment(0)
O
11

I have not used scala under emacs to tell if this can help you. But try (setq debug-on-error t) in your .emacs, or simply do M-: (setq debug-on-error t) to try for the current emacs session only.

Overwhelm answered 28/12, 2012 at 9:49 Comment(1)
M-x toggle-debug-on-error is more convenient in the interactive case.Kamasutra

© 2022 - 2024 — McMap. All rights reserved.