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

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

问题描述

我正在尝试像 Firebug 一样监控从应用程序到我的服务器的调用.我找不到在 iOS 模拟器或 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?

推荐答案

我个人使用 Charles 那种东西.
启用后,它将监控每个网络请求,显示扩展的请求详细信息,包括对 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天全站免登陆