GHCi debugger: new flag -fbreak-on-exception
authorSimon Marlow <simonmar@microsoft.com>
Tue, 15 May 2007 12:45:54 +0000 (12:45 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 15 May 2007 12:45:54 +0000 (12:45 +0000)
commit17f848e12faf8cf51aa58918522b6abe1e75dc51
tree9549b89a3a88422c5e1742f83d2474cb82066d7b
parentfb80639a87dcd7c6e08bd4a5d5a509d8098e9fe6
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.
compiler/ghci/InteractiveUI.hs
compiler/main/DynFlags.hs
compiler/main/InteractiveEval.hs
includes/RtsExternal.h
includes/StgMiscClosures.h
rts/Exception.cmm
rts/Interpreter.c
rts/Linker.c