Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#147 GHCi not using iterpreted mode when project is built

closed-fixed
JP Moresmau
Bug (46)
5
2012-05-25
2012-04-09
Tobias Bexelius
No

When trying to run the debugger on a module when the project has been succesfully built already, GHCi will load the compiled version which doesnt allow debugging (wont stop at breakpoints). This warning is indeed issued in the command window:

Prelude Main> module 'Main' is not interpreted; try ':add *Main' first

The workaround atm is to uncheck Automatic build, run a Clean on the project and remember to uncheck "start new build immediately", and THEN run the debugger.

Discussion

  • JP Moresmau
    JP Moresmau
    2012-05-25

    • assigned_to: nobody --> jpmoresmau
    • status: open --> closed-fixed
     
  • JP Moresmau
    JP Moresmau
    2012-05-25

    Good catch. We're using the flags from cabal so ghci loads the object code. This is good in run mode for performance, not so good in debug mode. Commit https://github.com/JPMoresmau/eclipsefp/commit/d91de29d2e9446b427fc2544971d74d7b03183f3 excludes relevant cabal info so that ghci rebuilds modules from sources, which doesn't impact run performance but solves your issue in debug mode.