Changes between Version 34 and Version 35 of NewGhciDebugger


Ignore:
Timestamp:
Apr 9, 2007 2:20:05 PM (7 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewGhciDebugger

    v34 v35  
    1212=== Starting the debugger === 
    1313 
    14 The debugger is integrated with GHCi, and it is on by default. The debugger slows program execution down by a factor of approximately XXX times. You can turn it off (to avoid the slowdown) using the `-fno-debug` command line argument. 
     14The debugger is integrated with GHCi, and it is on by default. The debugger slows program execution down by a factor of approximately XXX times. You can turn it off (to avoid the slowdown) using the `-fno-debug` command line argument, when you start GHCi. 
    1515 
    1616=== Setting break points === 
     
    155155=== Single stepping === 
    156156 
     157When a computation has hit a breakpoint it is sometimes useful to continue execution up until the next breakable expression is evaluated, regardless of whether there is a breakpoint set at that location. This functionality is provided by the `:step` command: 
     158 
     159{{{ 
     160   *Main> :step 
     161}}} 
     162 
     163The `:step` command accepts an optional argument expression. The expression is evaluated as usual, but the computation will stop at the first breakable expression which is encountered, for example: 
     164{{{ 
     165   *Main> :step foo True [1,2,3] 
     166}}} 
     167Here `foo True [1,2,3]` is the expression that we want to evaluate. 
     168 
    157169=== Continuing execution after a breakpoint === 
    158170