捕获phonegap中的logcat错误

时间:2013-04-10 15:08:33

标签: android cordova

有谁知道如何捕获phonegap中的logcat错误?

可以通过

try
{
}
catch(err)
{
}

提前感谢。

了Kobi

1 个答案:

答案 0 :(得分:0)

我猜你问的是如何从Phonegap打印日志?
如果是这样,请看看这篇文章: How to display console.log() output in PhoneGap app using Eclipse and HTC Desire HD?