intellij-haskforce
intellij-haskforce copied to clipboard
Debugger Support
I've started playing with haskforce plugin, quite like. Thanks for your work. I'm not sure if debugger is supposed to work already and if my local installation is broken or debugger isn't supported yet. If not supported yet, is that in your roadmap?
@opensourcegeek - Unfortunately it's not supported yet and also not currently on the roadmap. Debugging works very differently in Haskell than imperative languages, so getting it to work well in IntelliJ will be a tough task, but doable nonetheless.
If you or someone else is interested in working on this, feel free to start up a discussion here on it so we can get the wheels turning.
currently i have no time due to exams, but what would the difficulties be? I am a bit unfamiliar with the architecture, but how would debugging look like? user <-> intellij <-> ghc-mod <-> ghc? I can try (no promises ;) ) working on this when i have a bit more time.
The best way (that I know of) to debug Haskell code is to use GHCi -
https://downloads.haskell.org/~ghc/7.6.3/docs/html/users_guide/ghci-debugger.html
I've actually been looking into working out GHCi support for other things, like error checking, module discovery, etc, mostly to avoid always needing to configure ghc-mod (which can be especially difficult for new users). So that's probably worth considering when designing the feature.
how much work would ghci integration be? btw i stumbled upon intero, would an integration be useful for haskforce?
I just opened up an issue for this (#289). Let's discuss there.