[Haskell-cafe] Debugging methods for haskell

Thomas Schilling nominolo at googlemail.com
Thu Jul 16 04:56:20 EDT 2009


2009/7/16 Marc Weber <marco-oweber at gmx.de>
>
>
> I recall there was another method. Yeah, I even found it (using ghci and
> set -fbreak-on-exception)
>
> http://donsbot.wordpress.com/2007/11/14/no-more-exceptions-debugging-haskell-code-with-ghci/


Careful, better use -fbreak-on-error rather than -fbreak-on-exception.  Some
functions, e.g. 'doesFileExist', use exceptions internally and you might end
up stopping at an exception that is benign. (Identifying the exception has
become a little harder since we got extensible exceptions.)



-- 
Push the envelope.  Watch it bend.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090716/01a13e7c/attachment.html


More information about the Haskell-Cafe mailing list