Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've worked on an Android app in the past where the java developer set it to alert JavaScript errors - caught an extra bug that we didn't catch in the iOS version because of it. So, if you have access to the java layer, I'd check that out. I asked him what he did specifically and he said: "There's a callback from the WebView class that lets me know when the JS code throws an error. I implemented that callback to display an android dialog."</p> <p>There's two solutions other ideas on top of this that I use for debugging (ios/android). These are especially useful for embedded web views in games where you don't have access to the built-in console:</p> <p>1) <a href="http://people.apache.org/~pmuellr/weinre/docs/latest/" rel="noreferrer">Weinre</a> a still beta, but functional, remote debugger. It'll give you a faux inspector on your desktop that you can query / see errors on your remote device with. Has a whole dom inspector and anything. The guy that develops it is pretty responsive, too.</p> <p>2) I write a javascript log function that hits my servers error log. Just tail your log file and you're good to go. My javascript function looks something like this:</p> <pre><code>function hlog(){ var s = Array.prototype.slice.apply(arguments).join('¶'); document.createElement('img').src = 'http://yourdevbox/debugger/?m=' + encodeURIComponent(s); } </code></pre> <p>That way I can take any number of arguments. My php page that recieves this request looks like this:</p> <pre><code># ensure this can't be used in production if (strpos($GLOBALS['HTTP_HOST'], 'devboxhostname') &lt; 0) die(':('); error_log($_GET['m']); </code></pre> <p>Hopefully in the future, mobile devs will have way better debugging tools.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload