Using Fiddler to build an ASP Webapi and Android/ios debugging environment

Source: Internet
Author: User

Recently in his own practice of doing android+asp.net Webapi, found using Visual Studio After the debug mode starts ASP, it is unable to respond to the HTTP request sent by Android, and the set breakpoints do not work, and Google has discovered the following two solutions for a long time!

    • http://www.codefromjames.com/wordpress/?p=97#comment-18526
    • http://encosia.com/using-an-iphone-with-the-visual-studio-development-server/

The first scheme after testing can be used, very admire the skill of foreigners, no tools to carry out their own hands to achieve a

The second option has not been successful in my case, through which I found the official description of Fidder: Http://docs.telerik.com/fiddler/configure-fiddler/tasks/usefiddlerasreverseproxy


Post your own concrete as a summary:

1, Configuration Fillder

Open the Registry

HKEYcurrent User\software\microsoft\fiddler2 under Add DWORD node named Reverseproxyforport
Value is set to vs Debug ASP. Yes, port, like mine is 59883.

Restart Fildder

2, create a rule

Rules > Customize Rules

The first line of the onbeforereques method is incremented

if (oSession.host.toLowerCase () = = "yourip:8888") Osession.host = "localhost:59883";
Which yourip with your native IP address, my own is 192.168.11.7


The http://192.168.11.7:8888 is then accessed in the Android/iphone device, and then Fiddler can be repositioned to localhost:59883, so that the Visual Studio breakpoint will arrive as expected and the breakpoint is broken Hey, skin.





Related Article

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.