A partial attempt to improve :stepover
authorPepe Iborra <mnislaih@gmail.com>
Wed, 22 Aug 2007 09:08:44 +0000 (09:08 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Wed, 22 Aug 2007 09:08:44 +0000 (09:08 +0000)
commit24ee75415832b05f53726f2bbdf52972b1cfb613
tree580544299459ddd5250e2fd503311065dee4e55c
parent8fcfc8d6e42ea5bf49422024bc71d3728ee97db9
A partial attempt to improve :stepover

  With this patch, :stepover can effectively appear to step over recursive calls and
  calls to locally bound functions (in a where clause).

  However, when we run out of ticks in the current expression,
  the illusion vanishes and laziness brings us to the body of the last function
  we "stepped over".
  This is not desired at all, it is potentially very confusing.
  As a countermeasure, when this happens :stepover emits a warning

     "Warning: no more breakpoints in this function body, switching to :step"
compiler/ghci/InteractiveUI.hs
compiler/main/GHC.hs
compiler/main/InteractiveEval.hs