title: Is it possible to debug Turtle scripts (equivalent of "-x" flag in bash)?
body: <p>I've recently started using Haskell <a href="https://hackage.haskell.org/package/turtle" rel="noreferrer">Turtle</a> library to replace some of my shell scripts.</p>
  
  <p>Is there a way to somehow enable echoing of built in Turtle commands (like cd) ala <code>set -x</code> in bash scripts? I find it quite problematic to debug Turtle scripts in cases where many commands are executed and one of them fails with exception (like <code>cp</code> command with <code>Exception:openBinaryFile: does not exist</code>). Alternatively do you have some recommendation how to quickly isolate problems like these, so that I don't have to intersperse <code>puStrLn/echo</code> commands throughout my script?</p>