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.