[Haskell-cafe] Debugging
Ryan Dickie
goalieca at gmail.com
Sat May 5 01:44:15 EDT 2007
On 5/4/07, Monang Setyawan <monang at gmail.com> wrote:
>
> On 5/5/07, Stefan O'Rear <stefanor at cox.net> wrote:
> > On Sat, May 05, 2007 at 11:36:16AM +0700, Monang Setyawan wrote:
> > > Hi, I'm a beginner Haskell user.
> > >
> > > Is there any way to trace/debug the function application in GHC?
> >
> > Absolutely!
> >
> > stefan at stefans:/tmp$ ghci X.hs
> > ___ ___ _
> > / _ \ /\ /\/ __(_)
> > / /_\// /_/ / / | | GHC Interactive, version 6.7.20070502, for
> Haskell 98.
> > / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> > \____/\/ /_/\____/|_| Type :? for help.
> >
> > Loading package base ... linking ... done.
> > [1 of 1] Compiling Main ( X.hs, interpreted )
> > Ok, modules loaded: Main.
> > *Main> :break fac
>
> Great!! Thanks, it really helps.
> I should update my GHC to the newest version (I use the old 6.4.2
> with no break command)
>
> Is there any editor/IDE supporting this break command? It should be
> cooler if we can debug functions just by placing mark in the line.
>
> >
> > Stefan
> >
>
>
> --
> Demi masa..
>
>
> --
> Demi masa..
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
I've only written trivial applications and functions in haskell. But the
title of this thread got me thinking.
In an imperative language you have clear steps, states, variables to watch,
etc.
What techniques/strategies might one use for a functional language?
--ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070504/83796eb7/attachment.htm
More information about the Haskell-Cafe
mailing list