
On 5/5/07, Stefan O'Rear
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@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..
participants (1)
-
Monang Setyawan