我如何显示本地的交通中的小提琴手,同时调试ASP.NET 应用程序?

有帮助吗?

解决方案

尝试使用:

http://ipv4.fiddler/folder

而不是

http://localhost/folder

这也适用于端口

http://ipv4.fiddler:12345/folder

这是fiddler文档的链接

http://docs.telerik.com/fiddler/Configure-Fiddler/任务/ MonitorLocalTraffic

其他提示

要使用IIS Express使Fiddler在localhost上工作,您应该使用这种形式的URL

http://localhost.fiddler:50262/

这会使正确的Host头值(localhost)满足IIS Express。

启动Fiddler。 转到工具 - <!> gt;提琴手选项。 选择连接选项卡。 检查“USe PAC脚本”选项。

现在您也可以监控本地流量

对于ASP.NET网站项目:

1)右键单击该项目,然后选择Property Pages
2)选择开始选项
3)在“服务器”部分下,单击<!>“使用自定义服务器<!>”;通过将localhost替换为您的计算机名称来编辑基本URL。

监控localhost流量的最简单方法可能是替换<!> quot; localhost <!>; with <!> quot; localhost。<!> quot;在浏览器的URL栏中。 E.g。

http://localhost./MyApp/default.aspx

查看此链接...“解决方法”很糟糕,但确实有效:

提示在localhost上使用Fiddler

您可以使用PC主机名而不是127.0.0.1或localhost

检查<!>“;使用PAC脚本<!>”;在Fiddler选项中 - <!> gt;在企业内部网中使用IIS Express时,Connections对我有用。

使用小提琴手v4:

  1. 检查你的即代理设置

IE->的工具-->互联网的选择->的连接->局域网的设置

IE Lan Settings

  1. 检查设置在提琴手:

提琴手->的选择->连接和Https

检查小提琴手港口,默认是8888 Fiddler port

  1. 在提琴手-菜单:

文件>捕获业务是检查

以下解决方案的工作对我来说,当使用

  • 异常或
  • Web客户端 从内部的一个ASP.NET 应用程序。

网。config

<system.net>
    <defaultProxy
                enabled = "true"
                useDefaultCredentials = "true">
      <proxy autoDetect="False" bypassonlocal="False" proxyaddress="http://127.0.0.1:8888" usesystemdefault="False" />
    </defaultProxy>

代码:

var resourceServerUri = new Uri("http://localhost.fiddler:YourAppServicePort");
var body = c.GetStringAsync(new Uri(resourceServerUri)).Result;



检查你的请求实际上达到小提琴手,通过定制的小提琴手的规则的脚本

提琴手->规则>自定义的规则

钩到 OnBeforeRequest 活动:

static function OnBeforeRequest(oSession: Session) {

if (oSession.hostname.Contains("localhost:YourPortNumber")
{
 System.Windows.Forms.MessageBox.Show(oSession.hostname);  
} 

或明确地通过设置一个网代理

WebClient wc = new WebClient();

WebProxy proxy = new WebProxy();
// try one of these URIs
proxy.Address = new Uri("http://127.0.0.1:8888");
proxy.Address = new Uri("http://hostname:8888");
proxy.Address = new Uri("http://localhost.fiddler");
proxy.Address = new Uri("http://ipv4.fiddler");
// https://en.wikipedia.org/wiki/IPv6
proxy.Address = new Uri("http://ipv6.fiddler");

proxy.BypassProxyOnLocal = false; wc.Proxy = proxy;
var b = wc.DownloadString(new Uri(YourResourceServerBaseAddress));

确保在您的Fiddler Connections中,localhost不在<!>中; IE应绕过Fiddler以获取以以下内容开头的网址:<!> quot;框。

您应该取消选中复选框:

绕过代理服务器以获取本地地址

位于Internet Explorer的代理配置中。

尝试使用 http://127.0.0.1 。 <!> lt; - 请注意。最后

因此您仍然可以轻松连接到Casini并进行调试(我目前正在上调试页面) http://127.0.0.1.:1718/login/Default.aspx )。

一个可能的解决办法是删除的代理设置在即如下。

       IE->Tools->Internet Options->Connections->Lan Settings->

禁止以下

  • 自动检测设置
  • 使用自动构成的脚本

如果尝试使用Fiddler从BizTalk捕获本地计算机上的HTTPS流量,请尝试使用WCF适配器代理设置。我使用了地址:http://localhost:8888/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top