Command | Action | Sample usage |
---|---|---|
?sometext | 当你输入想查找某些文本(字符串),Fiddler会高亮显示在sessions 列表中出现该文本的的URL | ?searchtext |
>size | 筛选出sessions中,字节数大于 size 的响应 | >40000 <-- Select responses over 40kb |
<size | 筛选出sessions中,字节数小于 size 的响应 | <5k <-- Select responses under 5kb |
=status =method | 筛选出sessions中, response status = status or request method =method. | =301 <-- Select 301 redirect responses =POST <-- Select POST requests |
@host | 筛选出sessions中,请求的主机包含host的。 | @msn.com <-- Select www.msn.com, login.msn.com, etc |
bold | Mark any future sessions in bold if the url contains the target string 标记url包含目标字符串的sessions列表 | bold /bar.aspx bold <-- Call with no parameter to clear |
bpafter | 当请求的URI包含指定的字符串,中断任意响应 | bpafter /favicon.ico bpafter <-- Call with no parameter to clear |
bps | 当状态码匹配是,中断任意的响应 | bps 404 bps <-- Call with no parameter to clear |
bpv orbpm | 对请求的方法(POST/GET)创建请求断点。使用无参数的bpv指令,清除断点 | bpv POST bpv <-- Call with no parameter to clear |
bpu | 对URI创建一个请求中断,该URI可以包含特定的字符串。使用无参数的bpu指令,清除断点 | bpu /myservice.asmx bpu <-- Call with no parameter to clear |
cls orclear | 清空 session 列表 | cls |
dump | dump all sessions to a zip archive in C:/ | dump |
g or go | 重置sessions里的所有响应 | g |
help | 显示帮助页面 | help |
hide | 在系统Tray中隐藏Fiddler | hide |
urlreplace | Replace any string in URLs with a different string. Setting this command will clear any previous value for the command; calling it with no parameter will cancel the replacement. | urlreplace SeekStr ReplaceWithStr urlreplace <-- Call with no parameters to clear |
start | 注册一个新的系统代理 | start |
stop | 停止指定的系统代理 | stop |
show | Restore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below) | show |
select | Select any session where the response Content-Type header contains the specified string. | select image select css select htm |
allbut orkeeponly | Hide all sessions except those where Content-Type header contains the specified string. | allbut xml allbut java |
quit | 关闭Fiddler | quit |
官方原始文档:
Command | Action | Sample usage |
---|---|---|
?sometext | As you type sometext, Fiddler will highlight sessions where the URL contains sometext. Hit Enter to set focus to the selected matches. | ?searchtext |
>size | Select sessions where response size is greater than size bytes. | >40000 <-- Select responses over 40kb |
<size | Select sessions where response size is less than size bytes. | <5k <-- Select responses under 5kb |
=status =method | Select sessions where response status = status or request method =method. | =301 <-- Select 301 redirect responses =POST <-- Select POST requests |
@host | Select sessions where the request host contains host. Hit Enter to set focus to the selected matches. | @msn.com <-- Select www.msn.com, login.msn.com, etc |
bold | Mark any future sessions in bold if the url contains the target string | bold /bar.aspx bold <-- Call with no parameter to clear |
bpafter | Break any response where the RequestURI contains the specified string | bpafter /favicon.ico bpafter <-- Call with no parameter to clear |
bps | Break any response where the status code matches | bps 404 bps <-- Call with no parameter to clear |
bpv orbpm | Create a request breakpoint for the specified HTTP method. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint. | bpv POST bpv <-- Call with no parameter to clear |
bpu | Create a request breakpoint for URIs containing the specified string. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint. | bpu /myservice.asmx bpu <-- Call with no parameter to clear |
cls orclear | clear the session list | cls |
dump | dump all sessions to a zip archive in C:/ | dump |
g or go | Resume all breakpointed sessions | g |
help | show this page | help |
hide | Hide Fiddler in System tray | hide |
urlreplace | Replace any string in URLs with a different string. Setting this command will clear any previous value for the command; calling it with no parameter will cancel the replacement. | urlreplace SeekStr ReplaceWithStr urlreplace <-- Call with no parameters to clear |
start | Register as the system proxy | start |
stop | Unregister as the system proxy | stop |
show | Restore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below) | show |
select | Select any session where the response Content-Type header contains the specified string. | select image select css select htm |
allbut orkeeponly | Hide all sessions except those where Content-Type header contains the specified string. | allbut xml allbut java |
quit | Shutdown Fiddler. | quit |
Fiddler的几个使用技巧
只简单说下和前端开发调试密切相关的:
- 使用AutoResponder本地调试文件。请参考如何直接调试线上页面的JavaScript和CSS.
- 使用QuickExecBox快速操作。请参考QuickExec Reference. 推荐熟练掌握的命令:
?sometext, bpu, go, urlreplace
. 快捷键:Alt + Q, Ctrl + I, Shift + Del, Ctrl + X, F6
. - 使用Filter过滤信息。比如禁用JS, 设置断点等等。
- 使用bpu + Inspectors动态修改Response. 比如修改页面中的JS代码片段等等,非常有用。
- 使用Request Buidler测试请求。可以很方便的测试ajax代码。
- 使用Statistics + Timeline + neXpert查看性能等统计数据。
- 使用CustomRules, 自定义配置和命令等。比如修改
var m_DisableCaching: boolean = false;
的值为true
, 就可以默认禁止缓存。还可以自定义命令等等。 - 开发自己的扩展。请参考Extending Fiddler with .NET Code.
最后强烈推荐Fiddler的视频教程:Fiddler Demonstration Videos(听不懂没关系,能看懂就能学会)
另外,Firefox下推荐使用FoxyProxy自动切换代理。一次设定,服务终身。
http://blog.csdn.net/spring21st/article/details/5843495
http://www.cnblogs.com/Fernando/archive/2009/03/10/1407703.html