title: Is there a way to debug JavaScript in the iPhone/iOS Safari browser?
body: <p>I have a strange behavior on the iPhone browser. Is there a tool to debug the JavaScript of the iPhone browser?  </p>
  
  <p>I'm hoping there's something more advanced than simple <code>alert()</code> messages.  Is there something with advanced tools like setting breakpoints and viewing object states?</p>