Any real world experience debugging a production functional program?

前端 未结 6 1134
执笔经年
执笔经年 2021-02-05 11:31

I\'m interested in what tools and methods are used for diagnosing flaws in large scale functional programs. What tools are useful? My current understanding is that \'printf\'

6条回答
  •  Happy的楠姐
    2021-02-05 12:19

    A couple of years ago when I did this I had to use a combination of printf debugging and QuickCheck. These days I would also use the ghci built-in debugger.

    The biggest headache was actually laziness causing space-time leaks. There still doesn't seem to be a good answer to these: just do lots of profiling and keep trying to figure it out.

提交回复
热议问题