How to Use MITM Proxy for Debugging API Calls on macOS

Debugging API calls is an essential part of developing robust macOS applications. MITM (Man-In-The-Middle) Proxy is a powerful tool that allows developers to intercept, inspect, and modify network traffic. This guide will walk you through setting up and using MITM Proxy on your Mac to debug API calls effectively.

Abhimuralidharan
iOS Essentials

--

Here is my other article on How to Debug iOS Apps Using MITM Proxy in 5 Easy Steps . Please give it a try 🥹.

Installation — official documentation: https://docs.mitmproxy.org/stable/overview-installation/

brew install mitmproxy
  • Run this on the mac terminal and this will install mitmproxy and mitmweb.

Note: Both mac and mobile device should be connected to same wifi.

mitmweb
  • After installation, type mitmweb in terminal and…

--

--