在Google TV上调试Chrome [英] Debug Chrome on Google TV

查看:497
本文介绍了在Google TV上调试Chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何从运行在Google TV上的Chrome浏览器获取内存使用情况,Javascript错误等信息的任何想法?

Any ideas on how to get memory usage, Javascript errors, etc. from Chrome running on Google TV?

我有一个页面正在显示噢,快点!"在Google TV(Logitech)的Chrome浏览器中查看时出现错误.该页面相当简单,但是它确实加载了很多照片,尽管一次最多只能加载7张(这些照片是使用JavaScript加载的).这些照片分别为640x480和〜500KB.将它们堆叠起来,最上面的一个淡出(使用jQuery),直到全部消失,然后加载新的批处理.

I have a page that is getting the "Aw, snap!" error when viewed in the Chrome browser on Google TV (Logitech). The page is fairly simple, but it does load a bunch of photos, though only up to 7 at a time (the photos are loaded using JavaScript). The photos are 640x480 and ~500KB each. They are stacked and the top one fades out (using jQuery) until all are gone then a new batch is loaded.

它只会在Google TV上崩溃(在Windows 7上可以正常运行),并且需要一段时间才能崩溃(我可以通过打开我们的快速模式"将其降到崩溃之前大约10-20分钟)页).

It only crashes on Google TV (it runs fine on Windows 7) and it takes a while before it crashes (I can get it down to about 10-20 minutes before it crashes by turning on a "fast mode" on our page).

不幸的是,我无法弄清楚如何获取任何可能有助于调试的信息.能够在Google TV设备上使用Chrome的开发人员工具真是太酷了.

Unfortunately I can't figure out how to get any information that might help me debug it. It would be cool to be able to get Chrome's developer tools on the Google TV device.

推荐答案

当前无法从Google TV上的Chrome中提取调试信息. Logitech评论的RAM相当有限,您可能在那里遇到问题(我不知道这些图像有多大).您的JavaScript代码中也可能发生内存泄漏.在运行浏览器的其他系统上,这可能是隐藏的,因为会有更多的内存来缓冲您避免看到该错误.

Currently there is no way to pull debug information from Chrome on Google TV. The Logitech Review is rather limited in it's RAM and you may be encountering an issue there (I don't know how big these images are). It is also possible that you have a memory leak in your javascript code. This might be hidden on other systems running a browser as there would be more memory to buffer you from seeing the error.

我的建议是创建一个虚拟机(VirtualBox是免费的,并且可以在Windows上运行)-创建内存有限(例如256Mb Ram)的VM,并安装Ubuntu或其他可以运行Chrome的Linux.然后在VM中运行您的应用,然后看看会发生什么.

My advice would be to create a virtual machine (VirtualBox is free and runs on Windows) - create a VM with limited memory (256Mb Ram for instance) and install Ubuntu or some other flavor of linux that can run Chrome. Then run your app in the VM and see what happens.

如果无法始终尝试使用静态图像标签加载图像,然后查看是否是导致崩溃的图像.如果不是图像,那么我想说的是仔细看一下您的JS代码,也许可以通过JSLint(http://www.jslint.com/)来运行它

Failing that you could always try loading the imaged with static image tags and see if it is the images that are causing the crash. If it's not the images then I would say look at your JS code closely and perhaps run it through JSLint (http://www.jslint.com/)

这篇关于在Google TV上调试Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆