Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tool is my best bet for threaded Haskell debugging today?

Erlang's got its multi-process debugger that let's you see all your processes. Anything similar in Haskell?

like image 866
me2 Avatar asked Feb 18 '10 01:02

me2


2 Answers

There are two wonderful, world class tools:

  • ThreadScope, http://research.microsoft.com/en-us/projects/threadscope/
  • DTrace, http://justtesting.org/profiling-garbage-collection-in-haskell-with

ThreadScope is by far and away the best tool for thread profiling I've seen in any non-HPC setting.

like image 165
Don Stewart Avatar answered Sep 24 '22 12:09

Don Stewart


There's the Concurrent Haskell Debugger, which has existed since 2002 and which works with up-to-date ghcs. I've never used, nor heard any reports of experience using it, but it sounds like the right sort of thing.

CHD is about stepping backwards from deadlocks and so on. It's not the kind of control panel you get with Erlang, which I'm somewhat confident doesn't exist for Haskell.

like image 29
Charles Stewart Avatar answered Sep 25 '22 12:09

Charles Stewart