More debugger improvements
authorSimon Marlow <simonmar@microsoft.com>
Thu, 19 Apr 2007 14:23:58 +0000 (14:23 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 19 Apr 2007 14:23:58 +0000 (14:23 +0000)
commited1f16f4bde6ffcbb953ebeea0db1bc3802d3af3
treec30ca6e5a4a063733465e9ea736da5c5912e5686
parentd0b1049f85fab857ec1dc12d1c20d5ea9a5a854a
More debugger improvements

":list" shows the code around the current breakpoint.  Also it
highlights the current expression in bold (the bold/unbold codes are
hardwired to the ANSI codes right now, I'll provide a way to change
them later).

":set stop <cmd>" causes <cmd> to be run each time we stop at a
breakpoint.  In particular, ":set stop :list" is particularly useful.
compiler/ghci/GhciMonad.hs
compiler/ghci/InteractiveUI.hs