跟踪ghci中的主要功能

Lam*_*aal 5 haskell ghc ghci

有没有办法在GHCi中结合使用:main:trace命令?我需要在需要输入参数的应用程序中跟踪异常.

arr*_*owd 3

当然,很简单:trace main

不要忘记:set -fbreak-on-error:set -fbreak-on-exception

  • 然后尝试使用 `:set args` 。 (7认同)