Inspect helps you debug Ionic and Capacitor apps by giving you an all-in-one developer tool for macOS, Windows, and Linux.
Since Ionic and Capacitor apps run inside a WebView, you can use Inspect to debug them just like you would debug any web application, with full access to the DOM, Console, Network, and more.
Capacitor apps are hybrid mobile apps that use web technologies (HTML, CSS, JavaScript) wrapped in a native WebView container. Inspect connects to these WebViews and gives you a full debugging experience across both iOS and Android.
npx cap run ios or open the project in Xcode and run it on your device.WebView.setWebContentsDebuggingEnabled(true) in your app.npx cap run android or open the project in Android Studio and run it on your device.The Ionic CLI includes Live Reload functionality which reloads your app whenever you make code changes, without needing to rebuild the native binary:
ionic capacitor run ios -l --externalionic capacitor run android -l --externalThis is especially useful during development as it allows you to see changes instantly while still having access to native device features.
npx cap doctor# Verify your environment setupnpx cap sync# Sync web code with native projectsnpx cap open ios# Open iOS project in Xcodenpx cap open android# Open Android project in Android StudioWhile you can use Safari Web Inspector for iOS or Chrome DevTools for Android, Inspect provides a unified experience across both platforms and works on macOS, Windows, and Linux. No need to switch between different tools or deal with platform-specific setup.
Happy Inspecting!