在 Palm Pre 浏览器中运行 javascript 应用程序时如何查看 console.log 输出

发布于 2024-08-16 14:59:17 字数 240 浏览 4 评论 0原文

我正在尝试调试在 Palm Pre 浏览器上运行的 javascript 重的 Web 应用程序。应用程序将向 console.log() 输出各种有用的调试消息。该应用程序不是专门为 Palm Pre 构建的,但在其他基于 Webkit 的浏览器(例如 Safari)上运行良好。

如何查看 Pre 模拟器中运行的 Web 应用程序的 console.log 输出?看来可以查看专门为 Pre 构建的应用程序的输出,但不能查看网络浏览器本身的输出。

I'm trying to debug a javascript-heavy webapp running on the Palm Pre browser. There are various useful debugging messages that the app will output to console.log(). This app was not built specifically for the Palm Pre but runs great on other Webkit-based browsers such as Safari.

How can I view the output of console.log from the Web application running in the Pre emulator? It appears that it's possible to view output for an app built for Pre specifically, but not output from the web browser itself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冬天旳寂寞 2024-08-23 14:59:17

使用palm-log --system-log-level=info打开信息级别日志记录(由console.log使用)并创建一个名为framework_config.json的文件您的应用程序目录包含以下内容:

{
    "logLevel": 99
}

Use palm-log --system-log-level=info to turn on info-level logging (used by console.log) and create a file called framework_config.json in your application directory with the following contents:

{
    "logLevel": 99
}
深海少女心 2024-08-23 14:59:17

您可以编写自己的 console.log() 实现,它将输出到新窗口或 div。类似于 YUI Loggerlog4javascript

You can write your own implementation of console.log() which outputs to a new window or div. Something like YUI Logger or log4javascript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文