如何监控从iOS模拟器进行的网络呼叫(How to monitor network calls made from iOS Simulator)

编程入门 行业动态 更新时间:2024-10-16 02:29:39
如何监控从iOS模拟器进行的网络呼叫(How to monitor network calls made from iOS Simulator)

我正在尝试监控从一个应用程序到我的服务器的呼叫,就像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等)...

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

这是商业软件,但是有一个试用版,而IMHO肯定是一个很好的工具。

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.

更多推荐

本文发布于:2023-08-01 22:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1365777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模拟器   网络   iOS   monitor   Simulator

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!