title: Debugging UIAutomation scripts in Instruments
body: <p>I have recently tried using UIAutomation framework for some simple automated UI tests for iOS devices. While interesting and relatively powerful, I find it quite tedious to write the scripts without having the possibility of debugging them.</p>
  
  <p>Is there any way to debug the UIAutomation scripts ? The emphasis here is on the debugging of the script itself, i.e. the javascript part, I have already found the explanation of how to debug the tested application itself <a href="https://stackoverflow.com/questions/4472187/how-to-get-uiautomation-simulator-and-xcode-debugger-running-at-the-same-time">here</a>.</p>