标签: haskell ghc ghci
有没有办法在GHCi中结合:main和:trace命令?我需要在需要输入参数的应用程序中跟踪异常。
:main
:trace
答案 0 :(得分:3)
当然,它只是:trace main。
:trace main
不要忘记:set -fbreak-on-error和:set -fbreak-on-exception。
:set -fbreak-on-error
:set -fbreak-on-exception