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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -