我怎么可以观看(即调试)xmlHtt prequest()在IE8的行动? (使用Firebug的精简版) [英] How can I watch (i.e. debug) xmlHttpRequest() actions in IE8 ? (using Firebug Lite)

查看:84
本文介绍了我怎么可以观看(即调试)xmlHtt prequest()在IE8的行动? (使用Firebug的精简版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常做使用Firefox我的web开发 - 我定期用FF和IE测试我的网页跨浏览器的兼容性

I normally do my web dev using Firefox - I periodically test for cross browser compatability of my pages by using FF and IE.

我刚刚发现我的AJAX的一页停在IE工作 - 尽管它工作正常在FF。随着FF,我总是使用Firebug调试我的Ajax交互。我找了一个类似的工具与IE浏览器使用 - 看看是什么原因造成的失败,即使它是在页面上一个简单的AJAX程序。

I have just found that one of my AJAX pages stopped working in IE - although it works fine in FF. With FF, I always use FireBug to debug my Ajax interactions. I am looking for a similar tool to use with IE - to see what it is causing it to fail, even though it is a straightforward AJAX process on the page.

我下载萤火精简版,而且是非常有益的,因为它带来了一个熟悉的开发环境为IE浏览器。不幸的是,我一直没能按照ForebugLite的文档调试我的AJAX交互:

I downloaded Firebug Lite and that was very helpful, as it brought a familiar dev environment into IE. Unfortunately, I have not been able to debug my AJAX interactions following the ForebugLite's documentation:

firebug.watchXHR: Use this function to watch the status of XmlHttpRequest objects.

    var req = new XmlHttpRequest;
    firebug.watchXHR(req);

我插在我的网页 - 所以我页面的顶部看起来是这样的:

I inserted that in my page - so the top of my page looks like this:

<script type='text/javascript' 
    src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'>
    var req = new XmlHttpRequest;
    firebug.watchXHR(req);      
</script>

不过,我仍然无法调试AJAX交互(即没有显示在控制台窗口中,当我点击触发AJAX调用的链接)。

However, I still could not debug the AJAX interactions (i.e. nothing shows in the console window when I click on a link that triggers an AJAX call).

有没有人管理(IE7和Firebug的精简版)?

Has anyone managed to do this before (IE7 and Firebug Lite)?

推荐答案

或者,你可以安装提琴手并观看所有你的网站流量。

Or, you could install Fiddler and watch all of your web traffic.

这篇关于我怎么可以观看(即调试)xmlHtt prequest()在IE8的行动? (使用Firebug的精简版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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