Tue May 15 05:45:54 PDT 2007 Simon Marlow <[EMAIL PROTECTED]> * GHCi debugger: new flag -fbreak-on-exception When -fbreak-on-exception is set, an exception will cause GHCi to suspend the current computation and return to the prompt, where the history of the current evaluation can be inspected (if we are in :trace). This isn't on by default, because the behaviour could be confusing: for example, ^C will cause a breakpoint. It can be very useful for finding the cause of a "head []" or a "fromJust Nothing", though.
M ./compiler/ghci/InteractiveUI.hs -3 +4 M ./compiler/main/DynFlags.hs -1 +3 M ./compiler/main/InteractiveEval.hs -56 +78 M ./includes/RtsExternal.h +5 M ./includes/StgMiscClosures.h +1 M ./rts/Exception.cmm -12 +48 M ./rts/Interpreter.c -23 +16 M ./rts/Linker.c -2 +1 _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc