help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice on troubleshooting function to "unscroll"


From: Will Monroe
Subject: Re: Advice on troubleshooting function to "unscroll"
Date: Sun, 25 Jan 2015 16:01:35 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Marcin,

Thank you for that mini-lesson to help me get started with Edebug! It's funny but I remember seeing a great visualization tool for Python scripts that graphically depicted the sequence of steps in simple scripts/programs. It was intended to help instruct novices and help debug code. I remember thinking, "if only there were something for Elisp tht did that". This is what I needed!

Will

On 01/25/2015 03:55 PM, Marcin Borkowski wrote:

On 2015-01-25, at 22:43, Will Monroe <wtmonroe.ls@gmail.com> wrote:

Marcin,

Thanks for your quick and friendly response!

You're welcome!

Thanks for the advice about Edebug.  It's definitely something that is
on my mind.  But over the last day or so, I've hesitated from diving
into Edebug because there was no "error" as such.  That is, the code
"worked" it just didn't do what I intended.  Wasn't sure Edebug would
help in a case like that...but your point is well taken.  Thank you!

It might.  It lets you step through the execution of some part of the
code, seeing the result of evaluating each and every expression along
the way.  It may be very helpful sometimes.  And it's easy to just start
with it: just define the function with C-u C-M-x ("instrument" it for
Edebug), and then -- when the execution gest to it (and pauses) -- use
SPC to step through it or `G' to continue without stopping.  When you're
happy with your understanding what's going on in the code, press C-M-x
on the defun again.  (There's a lot more to Edebug than this, but it
should be enough to get you started.)

Best,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]