javascript - 在 Android Webkit : unhelpful exception 中调试

标签 javascript debugging android-browser mobile-webkit

我正在运行 webkit(浏览器列为“Webkit 3.1”)的 Android 手机上调试网络应用程序。我正在使用 weinre查看控制台,我在其中记录调试信息。

来自 Android webkit 的日志消息与其他浏览器中的日志消息有很大不同——大多数人阅读的不是正常输出,而是:

[ Exception: TypeError: Result of expression 'Object.getOwnPropertyNames' [undefined] is not a function. ] 

我不确定如何解释此消息,或如何继续调试。

最佳答案

只需复制有问题的表达式并尝试在控制台中使用有效参数运行它:Object.getOwnPropertyNames(Object)。为了将来引用,比较 useragent getOwnPropertyNames 的 Webkit 版本已实现。

关于javascript - 在 Android Webkit : unhelpful exception 中调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10670626/

相关文章:

javascript - Promise.all 错误 : Uncaught (in promise) TypeError: #<Promise> is not iterable

wpf - 绑定(bind)表达式错误的异常

debugging - IDE工具选择-跨平台x86 ASM调试

iphone - Android 不会显示 box-shadow 0px 模糊?

css - Android浏览器相对高度不准确

javascript - 在 Jquery 中添加具有属性的列表项

javascript - 如何修复我的 Angular 4 路由

linux - 正在运行的 bash 脚本卡在某处。我能找出它在哪一行吗?

android - 无法获取 SAMSUNG S4 native 浏览器历史记录

javascript - 当输入具有范围指令时,Angularjs 绑定(bind)问题