Fiddler cannot be debugged locally in IE browser

Source: Internet
Author: User

First of all, we should understand that the problem of local debugging failure is not a bug. Microsoft has provided an official explanation, which is due to IE browser and.. NET Framework does not take proxy for local requests, so Fiddler cannot detect data. Of course, you can also use the Firefox browser for debugging. Currently, the latest version of Fiddler supports Firefox. But here we also provide a solution in IE browser.

1. use the machine name instead of localhost or 12.7.0.1. For example, you used http: // localhost: 8081/mytestpage. aspx access, which is changed to http: // machinename: 8081/mytestpage. aspx.

2. Use a http://ipv4.fiddler to access localhost on an IPv4 adapter, and use a http://ipv6.fiddler to access localhost on an IPv6 adapter.

3. modify rules,

Update the rule code (locate onbeforerequest and add it ):

Static function onbeforerequest (osession: Fiddler. Session ){

If (osession. hostnameis ("MyApp") {osession. Host = "127.0.0.1: 8081 ";}

}

Then you can access it through http: // MyApp.

4. if it is difficult to change the code as above, the simplest thing is to add a period symbol "directly after localhost or 127.0.0.1 in the URL. http: // localhost. (http: // 127.0.0.1 .).

In short, do not use localhost or 127.0.0.1 for access, and set an alias for access.

How to Use fiddler in Firefox:

First, download and install the latest version of Fiddler. Remember to restart Firefox. The following figure shows the operation status of the fiddler Extension function in the lower right corner:

This indicates that the extension of fiddler for Firefox has been installed. fiddler: Off indicates that the fiddler application is not enabled, because the extension cannot directly initiate the fiddler application, so manually enable this application from the Assembly, and the State will change to the fiddler: on state, and the request and response information of Firefox can be smoothly collected.

Fiddler cannot be debugged locally in IE browser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.