如何监视从iOS模拟器发出的网络呼叫 [英] How to monitor network calls made from iOS Simulator

查看:132
本文介绍了如何监视从iOS模拟器发出的网络呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图像Firebug一样监视从应用程序到服务器的调用. 我找不到在iOS Simulator或xCode中看到它的方法.

I am trying to monitor calls from an app to my server just like Firebug does. I could not find a way to see that in iOS Simulator or in xCode.

是否有一种方法可以在不监听所有流量的情况下进行? 如果没有,您会建议使用哪种工具?

Is there a way to do that without sniffing all the traffic? If no, what tool would you suggest?

推荐答案

我个人使用 查尔斯 .
启用后,它将监视每个网络请求,显示扩展的请求详细信息,包括对SSL和各种请求/响应格式(如JSON等)的支持.

Personally, I use Charles for that kind of stuff.
When enabled, it will monitor every network request, displaying extended request details, including support for SSL and various request/reponse format, like JSON, etc...

您还可以将其配置为仅嗅探对特定服务器的请求,而不嗅探整个流量.

You can also configure it to sniff only requests to specific servers, not the whole traffic.

它是商业软件,但是有一个试用版,恕我直言,它绝对是一个很棒的工具.

It's commercial software, but there is a trial, and IMHO it's definitively a great tool.

这篇关于如何监视从iOS模拟器发出的网络呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆