Android WebView: is there a way to get a javascript stack trace? -


if have javascript running in webview, there way javascript string representation of current stack debugging purposes?

@andyray pointed me eriwen.com/javascript/js-stack-trace. can use that, took basic functionality there , use:

console.log("blah blah" + new error("stack trace").stack) 

also, @ bottom of js files do:

//@ sourceurl=snarkloading.js 

where snarkloading.js name of file (it can include slashes). makes possible line numbers , file names stack traces when file included via eval.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -