A partial attempt to improve :stepover
authorPepe Iborra <mnislaih@gmail.com>
Fri, 24 Aug 2007 13:40:22 +0000 (13:40 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Fri, 24 Aug 2007 13:40:22 +0000 (13:40 +0000)
commit99794f66b568709176dd9fc2248a57a21a165556
tree638ce921877021782cfa00d92fa761ee88d6e662
parentf17c76a4fc51a52ccda154ec9e4990f13f78c8c2
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