Fiddler 默认命令

CommandActionSample 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
dumpdump all sessions to a zip archive in C:/dump
g or go重置sessions里的所有响应g
help显示帮助页面help
hide在系统Tray中隐藏Fiddlerhide
urlreplaceReplace 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
showRestore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below)show
selectSelect any session where the response Content-Type header contains the specified string.select image

select css

select htm

allbut orkeeponlyHide all sessions except those where Content-Type header contains the specified string.allbut xml

allbut java

quit关闭Fiddlerquit

 

 

 

官方原始文档:

 

CommandActionSample usage
?sometextAs you type sometext, Fiddler will highlight sessions where the URL contains sometext.  Hit Enter to set focus to the selected matches.?searchtext
>sizeSelect sessions where response size is greater than size bytes.>40000 <-- Select responses over 40kb
<sizeSelect 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
@hostSelect 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
boldMark any future sessions in bold if the url contains the target stringbold /bar.aspx

bold        <-- Call with no parameter to clear

bpafterBreak any response where the RequestURI contains the specified stringbpafter /favicon.ico

bpafter        <-- Call with no parameter to clear

bpsBreak any response where the status code matchesbps 404

bps        <-- Call with no parameter to clear

bpv orbpmCreate 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

bpuCreate 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 orclearclear the session listcls
dumpdump all sessions to a zip archive in C:/dump
g or goResume all breakpointed sessionsg
helpshow this pagehelp
hideHide Fiddler in System trayhide
urlreplaceReplace 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

startRegister as the system proxystart
stopUnregister as the system proxystop
showRestore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below)show
selectSelect any session where the response Content-Type header contains the specified string.select image

select css

select htm

allbut orkeeponlyHide all sessions except those where Content-Type header contains the specified string.allbut xml

allbut java

quitShutdown Fiddler.quit

Fiddler的几个使用技巧


只简单说下和前端开发调试密切相关的:

  1. 使用AutoResponder本地调试文件。请参考如何直接调试线上页面的JavaScript和CSS.
  2. 使用QuickExecBox快速操作。请参考QuickExec Reference. 推荐熟练掌握的命令:?sometext, bpu, go, urlreplace. 快捷键:Alt + Q, Ctrl + I, Shift + Del, Ctrl + X, F6.
  3. 使用Filter过滤信息。比如禁用JS, 设置断点等等。
  4. 使用bpu + Inspectors动态修改Response. 比如修改页面中的JS代码片段等等,非常有用。
  5. 使用Request Buidler测试请求。可以很方便的测试ajax代码。
  6. 使用Statistics + Timeline + neXpert查看性能等统计数据。
  7. 使用CustomRules, 自定义配置和命令等。比如修改var m_DisableCaching: boolean = false;的值为true, 就可以默认禁止缓存。还可以自定义命令等等。
  8. 开发自己的扩展。请参考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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值