LambdaStaal
LambdaStaal

Reputation: 557

Trace main functions in ghci

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.

Upvotes: 6

Views: 776

Answers (1)

arrowd
arrowd

Reputation: 34411

Sure, it's simply :trace main.

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

Upvotes: 3

Related Questions