From: Pepe Iborra Date: Mon, 20 Aug 2007 14:20:35 +0000 (+0000) Subject: (short) Documentation for :stepover in the Users Guide X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1cb7a8702e066ee74a6687f7f896ed77d0c25d8a (short) Documentation for :stepover in the Users Guide --- diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index bde1648..a8ebbd7 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -1106,10 +1106,12 @@ right :: [a] Single-stepping is a great way to visualise the execution of your program, and it is also a useful tool for identifying the source of a - bug. The concept is simple: single-stepping enables all the - breakpoints in the program and executes until the next breakpoint is - reached, at which point you can single-step again, or continue - normally. For example: + bug. GHCi offers two variants of stepping. Use + :step to enable all the + breakpoints in the program, and execute until the next breakpoint is + reached. Use :stepover to step over function + applications, which of course are executed all the same. + For example: *Main> :step main @@ -1118,10 +1120,11 @@ _result :: IO () The command :step - expr begins the evaluation of + expr begins the evaluation of expr in single-stepping mode. If expr is ommitted, then it single-steps from - the current breakpoint. + the current breakpoint. :stepover + works similarly. The :list command is particularly useful when single-stepping, to see where you currently are: