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
Post a Comment