Remotely debug an iOS mobile app with Charles

Source: Internet
Author: User

As an iOS mobile app, many developers will like to catch network packets, return packages to the service-side excuses and locate other network problems. If the Windows system can use Fiddler to do iOS remote agent, as long as the fiddler system and iOS devices are connected to the same LAN. But there is no Fiddler on the OSX system, I believe that iOS development with the Windows system is not much, in fact, do not tangle: In fact, cross-platform HTTP capture tool Charles can also be a remote agent, that is, iOS can also be debugged through Charles, The relevant techniques for Charles debugging are available for iOS.

So how can Charles be a remote agent for iOS? Read the documentation from Charles ' official website first.

USING CHARLES from an IPHONE

To use Charles as your HTTP proxy on your iPhone must manually configure the HTTP proxy settings on your WiFi network In your IPhone ' s Settings.

Go to the Settings app, tap Wi-Fi, find the network connected to and then tap the Blue disclosure arrow to Configu Re the network. Scroll down to the HTTP Proxy setting, tap Manual. Enter the IP address of your computer running Charles in the Server field, and the port Charles are running on the port field (usually 8888). Leave authentication set to OFF.

All of the your web traffic from your IPhone would now be sent via Charles. You should see a prompt in Charles when your first make a connection from the IPhone, asking the traffic.

Remember to disable the HTTP Proxy in your Settings if you stop using Charles, otherwise you ' ll get confusing network FA Ilures in your applications!

charlesproxy.com Remote Debug IOS APP with Charles

From this document you can know just to open the iOS wifi settings, scroll to the bottom of the Proxy Settings section, click on the "Manual" tab, in the " Server " field, enter the network IP address of Charles's system, enter "8888" in the " Port " field. "and then open a Web-based app, and this time Charles on OSX will have a pop-up window, a confirmation box for the authorized remote agent, and click"allow "to enable iOS to connect to the computer's Charles.

After this setting, all HTTP requests on iOS can be captured by Charles, see "sequence" View crazy scrolling screen, you will also have an instant orgasm the same feeling!

Remotely debug an iOS mobile app with Charles

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.