Use Fiddler to build the Asp.net webapi and Android/IOS debugging environment

Source: Internet
Author: User

Recently, I have been practicing Android + Asp.net WebApi. I found that after I started Asp.net in visual studio debug mode, I was unable to respond to the http request sent by Android. The Set breakpoint does not work, google has found the following two solutions for a long time:

 

The first solution can be used after testing. I admire the skill of foreigners and do not have the tools to implement one by myself.

The second solution was not successful here, and through it I found the official description of Fidder: http://docs.telerik.com/fiddler/configure-fiddler/tasks/usefiddlerasreverseproxy

 

Paste your own details as a summary:

1. Configure Fillder

Open Registry

HKEYCURRENTUSERSOFTWAREMicrosoftFiddler2Add the DWord node namedReverseProxyForPort
Set the value to vs to debug the port of asp.net. For example, if my value is 59883

Restart Fildder <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + forward + CjxwPjxzdHJvbmc + forward = "brush: java;"> if (oSession. host. toLowerCase () = YourIP: 8888) oSession. host = localhost: 59883;YourIP uses your local IP address, and my own IP address is 192.168.11.7.

 

 

Then access http: // 192.168.11.7: 8888 on the Android/iphone device, and then the Fiddler can locate localhost: 59883 again, so that the breakpoint of visual studio will arrive as scheduled, the breakpoint is broken.

 

 

 

 

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.