[Haskell-cafe] Debugging Haskell code
John D. Ramsdell
ramsdell0 at gmail.com
Mon Sep 28 22:53:08 EDT 2009
On Sun, Sep 27, 2009 at 3:50 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> The problem is that I have *no idea* how to begin debugging this.
I've had great success debugging a large program by loading the Main
module into ghci after setting GHC extensions, changing the search
path, and setting break on errors. If you then place calls to the
error function at the right location, and trace the execution, you'll
be able to get a stack trace of the context in which the error
function was called.
John
More information about the Haskell-Cafe
mailing list