Using Fiddler to establish ASP Webapi and Android/ios debugging environment

Source: Internet
Author: User

Recently, they are doing android+asp.net webapi exercises by discovering Visual Studio Debug mode after starting ASP, unable to respond to Android send HTTP request, set a good rest does not work, Google is very long, we found the following two kinds of solutions

    • 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 implement a

The other option is that I didn't try to succeed, and through it I found Fidder's official note: Http://docs.telerik.com/fiddler/configure-fiddler/tasks/usefiddlerasreverseproxy


Post your own details as a summary:

1, Configuration Fillder

Open the Registration form

HKEYcurrent User\software\microsoft\fiddler2 The following add DWORD node is named Reverseproxyforport
The value is set to vs Debug ASP. For example, mine is 59883.

Restart Fildder

2, create a rule

Rules > Customize Rules

In the first line of the onbeforereques method, add

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


Then visit http://192.168.11.7:8888 in the Android/iphone device. Then fiddler can navigate to the localhost:59883 again, so that Visual Studio's breakpoint will arrive and see the breakpoint broken, hi skin.





Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Using Fiddler to establish ASP Webapi and Android/ios debugging environment

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.