Changes between Version 52 and Version 53 of NewGhciDebugger


Ignore:
Timestamp:
Apr 9, 2007 3:27:47 PM (8 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewGhciDebugger

    v52 v53  
    221221   bar = do something else
    222222}}}
    223 Suppose we have a breakpoint set somewhere inside the computation done by `foo`, but there are no breakpoints in the computation done by `bar`. When we run this program in GHCi the following things happen:
    224    * `foo` gets forked and `foo` and `bar` begin their work
    225    * `bar` completes its job and we return to the GHCi prompt (uh oh!)
    226    * `foo` eventually hits a breakpoint and attempts to return to the command line, but it can't because we are already there (in the previous step).
     223
     224   Suppose we have a breakpoint set somewhere inside the computation done by `foo`, but there are no breakpoints in the computation done by `bar`. When we run this program in GHCi the following things happen:
     225    * `foo` gets forked and `foo` and `bar` begin their work
     226    * `bar` completes its job and we return to the GHCi prompt (uh oh!)
     227    * `foo` eventually hits a breakpoint and attempts to return to the command line, but it can't because we are already there (in the previous step).
    227228
    228229Now the foo thread is blocked, so we can't witness the breakpoint.