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