GHC 6.8.1 RC debugger only breaking on first evaluation of a function

Pepe Iborra mnislaih at gmail.com
Wed Sep 19 04:32:23 EDT 2007


On 19/09/2007, at 10:05, Tomasz Zielonka wrote:

>
> If you don't find a better solution, then at least you can make it
> easier to perform the above sequence:
>
> $ cat ~/.ghci
> :def . readFile
> $ cat script
> :l Module
> :b 236
> $ ghci
> GHCi, version 6.8.20070912: http://www.haskell.org/ghc/  :? for help
> Loading package base ... linking ... done.
> Prelude> :. script
> [1 of 1] Compiling Module           ( Module.hs, interpreted )
> Ok, modules loaded: Module.
> Breakpoint 0 activated at Module.hs:236:20-45
> *Module> _


You could also touch the module file to force a full reload:

GHCi, version 6.7.20070907: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( Qsort.hs, interpreted )
Ok, modules loaded: Main.
*Main> :! touch Qsort.hs
*Main> :r
[1 of 1] Compiling Main             ( Qsort.hs, interpreted )
Ok, modules loaded: Main.
*Main>

Cheers
pepe


More information about the Glasgow-haskell-users mailing list