summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPepe Iborra <mnislaih@gmail.com>2007-08-20 14:20:35 +0000
committerPepe Iborra <mnislaih@gmail.com>2007-08-20 14:20:35 +0000
commit1cb7a8702e066ee74a6687f7f896ed77d0c25d8a (patch)
tree61c6622f956454163ba3fe64497c2eaaa5e25e86
parent6e9b0b152e64ce2f9e05a054605624f36bf44617 (diff)
downloadhaskell-1cb7a8702e066ee74a6687f7f896ed77d0c25d8a.tar.gz
(short) Documentation for :stepover in the Users Guide
-rw-r--r--docs/users_guide/ghci.xml15
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index bde1648d1d..a8ebbd7b66 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -1106,10 +1106,12 @@ right :: [a]
<para>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:</para>
+ bug. GHCi offers two variants of stepping. Use
+ <literal>:step</literal> to enable all the
+ breakpoints in the program, and execute until the next breakpoint is
+ reached. Use <literal>:stepover</literal> to step over function
+ applications, which of course are executed all the same.
+ For example:</para>
<screen>
*Main> :step main
@@ -1118,10 +1120,11 @@ _result :: IO ()
</screen>
<para>The command <literal>:step
- <replaceable>expr</replaceable></literal> begins the evaluation of
+ <replaceable>expr</replaceable></literal> begins the evaluation of
<replaceable>expr</replaceable> in single-stepping mode. If
<replaceable>expr</replaceable> is ommitted, then it single-steps from
- the current breakpoint.</para>
+ the current breakpoint. <literal>:stepover</literal>
+ works similarly.</para>
<para>The <literal>:list</literal> command is particularly useful when
single-stepping, to see where you currently are:</para>