Appcelerator Titanium - 如何在logcat中查看警报?

时间:2016-11-02 16:38:49

标签: appcelerator logcat

如果我的应用中有提醒

alert("howdy");

使用adb logcat命令查看该警报需要做什么?我已经尝试adb logcat *:v但没有出现 - 即使我可以在正在运行的应用中看到提醒!

1 个答案:

答案 0 :(得分:1)

alert()在Android中显示对话框,不执行任何控制台/ adb。

但是,如果您想要显示内容,则应使用日志工具

如果您深入研究documentation,则需要使用debuginfoerror方法插入不同级别的日志记录。

console.log()console.warn()console.error()也可以使用。