[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: How do I go about debugging my Elisp code?
From: |
Emanuel Berg |
Subject: |
Re: Fwd: How do I go about debugging my Elisp code? |
Date: |
Sat, 15 Jan 2022 00:22:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jean Louis wrote:
> I join to advise by Michael from Sweden
Haha :D
> as to make it a proper package, use byte-compiler messages
> and warnings first.
>
> You could use M-x emacs-lisp-byte-compile to find various
> warnings and that is also for debugging purposes.
>
> What I often do is instrumenting the function for Edebug and
> using xref package to move from function to function.
>
> Here is the method:
>
> 1. First find the function which you suspect or wish to
> debug, or the one which you are invoking.
>
> 2. Press C-u for prefix followed by C-M-x within the
> function. This will instrument the function for Edebug.
>
> 3. Run the function to begin the process. Once instrumenting
> process begins, click "n" for next and verify various
> values and how function is executed. You will find out
> what is wrong.
>
> 4. If you see that function is calling other function where
> you think that problem exists, instrument that other
> function as well.
>
> 5. To remove instrumentation use M-x
> edebug-remove-instrumentation and remove functions which
> you don't want to inspect any more.
... but good outline.
--
underground experts united
https://dataswamp.org/~incal
- Fwd: How do I go about debugging my Elisp code?, Davin Pearson, 2022/01/12
- Re: Fwd: How do I go about debugging my Elisp code?, Emanuel Berg, 2022/01/12
- Re: Fwd: How do I go about debugging my Elisp code?, Michael Heerdegen, 2022/01/13
- Re: Fwd: How do I go about debugging my Elisp code?, Marcin Borkowski, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?,
Emanuel Berg <=
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Tassilo Horn, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Tassilo Horn, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Tassilo Horn, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Tassilo Horn, 2022/01/14
- Re: Fwd: How do I go about debugging my Elisp code?, Jean Louis, 2022/01/15
- Re: Fwd: How do I go about debugging my Elisp code?, Marcin Borkowski, 2022/01/14