[GHC] #1083: ghci says a module wasn't loaded under debugging mode when in fact it was

GHC trac at galois.com
Thu Jan 4 04:44:19 EST 2007


#1083: ghci says a module wasn't loaded under debugging mode when in fact it was
----------------------------+-----------------------------------------------
    Reporter:  mnislaih     |       Owner:  mnislaih
        Type:  bug          |      Status:  new     
    Priority:  normal       |   Milestone:  6.8     
   Component:  GHCi         |     Version:  6.6     
    Severity:  normal       |    Keywords:          
  Difficulty:  Easy (1 hr)  |    Testcase:          
Architecture:  Unknown      |          Os:  Unknown 
----------------------------+-----------------------------------------------
When loading an empty module like the following:
 {{{
 main = putStr "hola"
 }}}

 ghci will refuse to set a breakpoint saying that the module is not loaded
 under debugging mode
 {{{
 pepe:~/code/snippets$ ghci -fdebugging main
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.7, for Haskell 98.
 / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
 \____/\/ /_/\____/|_|      Type :? for help.

 Loading package base ... linking ... done.
 [1 of 1] Compiling Main             ( main.hs, interpreted )
 Ok, modules loaded: Main.
 *Main> :break add Main 1
 *** Exception: Module main:Main was not loaded under debugging mode.
 Enable debugging mode and reload it
 *Main>
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1083>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list