Is there a way to combine both :main and :trace commands in GHCi? I need to trace an exception in an app that needs input arguments.

有帮助吗?

解决方案

Sure, it's simply :trace main.

Do not forget about :set -fbreak-on-error and :set -fbreak-on-exception.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top