带框架集的 fiddler 2
我需要一个用于调试 ajax 请求和响应的工具。有人推荐使用 fiddler 2。现在我的问题是我正在开发一个具有框架集的应用程序。左侧一个用于导航,顶部一个用于更多导航,主应用程序位于下方。当我点击一些东西时,我在 fiddler 2 上看到的只是:
200 http tunnel to blah.com and then the port number.
在 webforms 或 webview 部分中,我没有看到任何这些 ajax 变量。当有框架集时,有没有办法让这个东西发挥作用?
I needed a tool for debugging ajax requests and responses. Somebody recommended using fiddler 2. Now my problem is I am working on an application that has framesets. One on the left for nav, one on the top for some more nav where the main application is underneath. When I click on things, all I see on fiddler 2 is :
200 http tunnel to blah.com and then the port number.
In the webforms, or webview section, I don't see any of these ajax variables. Is there a way to make this thing work when there are framesets?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能否提供您正在使用的代码示例?
我目前正在使用 Fiddler 来调试 ASP.NET 应用程序,并在使用 HTML、PHP 和 jQuery 进行开发时使用过它。
关于框架的一句话
首先,如果可能的话,我不会在您的实现中使用框架。它们在 HTML5 中已经贬值,并且很快就会重蹈渡渡鸟的覆辙! (框架大部分时间都很糟糕)。相反,您可以考虑使用 iFrame、Ajax 请求甚至 CSS (它模仿框架“看”)。
现在来解决问题。我假设您同时使用框架和 JavaScript Ajax 代码。
检查 Fiddler
Fiddler 像其他日志一样记录 Ajax 请求。它不会歧视,通常会捕获所有内容。首先,通过导航到 Goggles 的实时搜索来仔细检查 fiddler。如果您在键入搜索字符串时可以看到多个 Ajax 请求,那么问题出在您的实现(frames/Ajax)上,而不是 Fiddler 上。
如果是您的实现
如果没有有关您的代码/实现的更多信息,请尝试以下方法进行故障排除:
如果是 Fiddler,请使用 Firebug
如果 Fiddler 无法正常工作,请尝试 Firebug。它是一个很棒的 Firefox 插件,“网络”选项卡将为您提供所有请求/响应。
Could you provide an example of the code you are using?
I'm using Fiddler at the moment to debug a ASP.NET app and have used it while developing in HTML, PHP and jQuery.
A word on frames
First, if at all possible I would not use frames in your implementation. They are depreciated in HTML5 and will be going the way of the dodo soon enough! (Frames Suck Most of the Time). Instead, you could look at using iFrames, Ajax requests or even CSS (which mimics a frames 'look').
Now onto the problem. I'm assuming that your using both frames AND JavaScript Ajax code.
Check Fiddler
Fiddler logs Ajax requests like any other. It doesn't discriminate and usually catches absolutely everything. First, double check fiddler by navigating to goggles’ live search. If you can see the multiple Ajax requests as you type a search string, then its your implementation (frames/Ajax) that’s the problem and not Fiddler.
If its your implementation
Without more information on your code / implimentation try the following to troubleshoot:
If its Fiddler, use Firebug
If Fiddler isn't working out, try Firebug. Its a great Firefox ad-on and the "nets" tab will give you all requests/responses.