Subject: [sup-talk] debugging hooks

From: [email-masked] (John Bent)
Date: Wed, 23 Jan 2008 13:22:25 -0700

I seem to have a ruby bug in my before-add-message.rb hook.  When new
messages are loaded, I see a very quickly displayed error message about
the hook.  Is this same error written to a file anywhere because it flashes
too quickly for me to read it?  I tried just directly executing the
before-add-message.rb code with ruby but of course it complains that message
is undefined.  What is the best way to debug hooks?

Thanks,

John

---

From: [email-masked] (William Morgan)
Date: Wed, 23 Jan 2008 12:51:46 -0800

Reformatted excerpts from John Bent's message of 2008-01-23:
> messages are loaded, I see a very quickly displayed error message
> about the hook.  Is this same error written to a file anywhere because
> it flashes too quickly for me to read it?

The messages should be reproduced in the log buffer. If you hit B you
can bring it up directly.

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (John Bent)
Date: Wed, 23 Jan 2008 14:25:54 -0700

> can bring it up directly.
That did the trick.  Thanks a lot.  And thanks again for sup.  I'm so
happy to finally say good-bye to pine; I feel like I've finally entered
the correct century in terms of my email technology.

---

From: [email-masked] (William Morgan)
Date: Wed, 23 Jan 2008 14:01:59 -0800

Reformatted excerpts from John Bent's message of 2008-01-23:
> happy to finally say good-bye to pine; I feel like I've finally
> entered the correct century in terms of my email technology.

Well I wouldn't go that far. You're still using a console program, after
all. :)