如何在 Windows Phone 7 上调试 Internet Explorer? [英] How do I debug Internet Explorer on Windows Phone 7?

查看:22
本文介绍了如何在 Windows Phone 7 上调试 Internet Explorer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是 Windows Phone 开发人员,我希望尽可能少做与 Microsoft 相关的任何事情.尽管如此,我需要让我的移动 Web 应用程序在 Windows Phone 7 上正常运行.该平台有哪些调试工具可用?Webkit 开发人员工具或 Firebug 之类的东西是理想的选择,无论是从手机本身还是更有可能从我的计算机远程调试.

I'm not a Windows Phone developer, and I want as little to do as possible with anything related to Microsoft. Nonetheless, I need to get my mobile web app running properly on Windows Phone 7. What debugging tools are available for the platform? Something like the Webkit developer tools or Firebug would be ideal, either from the phone itself or more likely, remotely debugging from my computer.

如果这样的东西不存在,我会满足于能够读取 Javascript 错误消息,并使用 alert() 或类似方法查看变量的内容.在这一点上,我只知道我的 JS 失败了:我不知道在哪里或为什么,更不用说如何修复它.

If such a thing doesn't exist, I'd settle for being able to read Javascript error messages, and view the contents of variables using alert() or similar. At this point, all I know is that my JS is failing: I don't know where or why, let alone how to fix it.

我的开发计算机运行的是 OS X,如果可能的话,我真的希望能够使用 OS X 中的这些工具.假设存在调试工具(我真的希望他们这样做)它们是否仅适用于 Windows?如果是这样,有没有人知道他们与 Wine 或类似产品的搭配效果如何?

My dev computer is running OS X, and I'd really like to be able to use these tools from OS X if possible. Assuming that debugging tools exist (which I really hope they do) are they designed for Windows only? If so, does anyone know how well they would work with Wine or similar?

编辑:我有一台物理 Windows Phone 7 设备,所以我可以使用它.但是, alert() 似乎不起作用,这就是我发布此问题的原因.alert() 是否在 WP7 浏览器上正常工作?

EDIT: I have a physical Windows Phone 7 device, so I can use that. However, alert() doesn't seem to be working, which is why I'm posting this question. Does alert() normally work on the WP7 browser?

推荐答案

您可能会发现 Mobile PerfBookmarklet 成为测试任何移动设备的最简单的多合一工具.

You'll likely find the Mobile Perf Bookmarklet to be the easiest all-in-one tool for testing any mobile device.

到目前为止,我的测试在 iPhone/iPad/Samsung Galaxy Tab 上运行良好.

Works well on the iPhone/iPad/Samsung Galaxy Tab in my testing so far.

引用:

它显示一个菜单,其中包含加载其他书签的链接,包括 Firebug Lite、Page Resources、DOM Monster、SpriteMe、CSSess 和 Zoompf.

It displays a menu with links that load other bookmarklets including Firebug Lite, Page Resources, DOM Monster, SpriteMe, CSSess, and Zoompf.

这篇关于如何在 Windows Phone 7 上调试 Internet Explorer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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