GHC 6.8.1 RC debugger only breaking on first evaluation of a
function
Olivier Boudry
olivier.boudry at gmail.com
Tue Sep 18 14:26:38 EDT 2007
Hi all,
I just tried the new GHCi debugger. A great new feature of GHCi 6.8.1.
When debugging a function, as for example the qsort function given as an
example in the "3.5 The GHCi Debugger" documentation page, the debugger will
only break on first function evaluation.
As haskell is pure and lazy it's probably a normal behavior (reuse last
result instead of recompute) but it's not very practical in a debugger. I
tried to reload (:r) but it doesn't seems to help. Is there a way to force
the function to be re-evalutated without quitting, starting, loading prog
and setting breakpoints again, other than making the function part of the IO
monad. ;-)
Thanks,
Olivier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20070918/8409e1b8/attachment.htm
More information about the Glasgow-haskell-users
mailing list