intellij-haskforce icon indicating copy to clipboard operation
intellij-haskforce copied to clipboard

Debugger Support

Open opensourcegeek opened this issue 9 years ago • 5 comments

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 avatar Dec 04 '15 11:12 opensourcegeek

@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.

carymrobbins avatar Dec 04 '15 17:12 carymrobbins

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.

LeanderK avatar Jul 30 '16 19:07 LeanderK

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.

carymrobbins avatar Jul 30 '16 23:07 carymrobbins

how much work would ghci integration be? btw i stumbled upon intero, would an integration be useful for haskforce?

LeanderK avatar Jul 31 '16 20:07 LeanderK

I just opened up an issue for this (#289). Let's discuss there.

carymrobbins avatar Jul 31 '16 20:07 carymrobbins