ghci says a module wasn't loaded under debugging mode when in fact it was
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>
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.6 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |