Debugging

Graham Klyne gk@ninebynine.org
Wed, 27 Aug 2003 10:25:01 +0100


At 17:27 26/08/03 +0200, Konrad Hinsen wrote:
>My Haskell experiments have reached a size in which debugging tools would=
 be
>more than welcome, so I looked around, and was very disappointed. I tried
>Hood, which is a pain to use (lots of editing of the code required), I=
 looked
>at Buddha but didn't want to downgrade to GHC 5 for trying it (nor is my=
 code
>Haskell 98, because of multi-parameter classes), and all that seems left to
>try is Hat, whose Web site I can't reach at the moment.
>
>So what are you Haskell programmers using for debugging in real life?

I have found that an approach based on unit testing (using HUnit)=20
eliminates most requirements for a debugger.  When I have problems, I=20
resort to ad-hoc techniques, sometimes exposing (exporting) the inner=20
workings of a module for testing/exploration purposes.

#g


------------
Graham Klyne          _________
GK@ninebynine.org  ___|_o_o_o_|_=AC
                    \____________/
(nb Helva)       ~~~~~~~~~~~~~~~~~~   @Reading, River Thames
http://www.ninebynine.org/Travels/2003Aug-Thames/Intro.html