Flutter Network Inspector for VS Code

A fast, lightweight, in-editor alternative to Flutter DevTools Network Inspector for Visual Studio Code. Inspect HTTP & HTTPS traffic from your running Flutter applications (Dio and dart:io HttpClient) on Android, iOS, macOS, Windows, and Linux without switching to an external browser window.
What's New in v1.0.3
- Marketplace Release: Updated documentation, release metadata, and GitHub repository links for VS Code Marketplace release.
- Response Body Inspection Fix: Resolved an issue where selecting different requests in the list would occasionally display cached response bodies from previous requests.
- Detail Persistence:
RetentionManager now preserves previously fetched request details and bodies when background polling updates arrive.
- Immediate Selection Sync: Instant cached body rendering on row clicks with synchronized webview state.
- Updated GitHub & Marketplace Links: Corrected all documentation and package metadata to point to
https://github.com/vroycle11/flutter_network_inspector.
Features
- Zero-Configuration Capture: Automatically connects to your running Flutter application via the Dart VM Service / DDS and profiles network requests in real time without requiring any application code changes.
- Full Dio Support: Inspects Dio GET, POST, PUT, DELETE, and PATCH requests, headers, query parameters, status codes, and response bodies on Android & iOS.
- Companion Interceptor: Includes an optional companion package
flutter_network_inspector_dio for inspecting FormData uploads, custom network adapters (cupertino_http, cronet_http), and detailed Dio error types.
- High-Performance Virtualized Table: Custom virtualized DOM viewport handles thousands of historical requests smoothly at 60 FPS without UI freezes or memory bloat.
- Interactive JSON Inspector: Syntax-highlighted, collapsible tree viewer with lazy rendering, copy-by-value, and search for complex JSON payloads.
- Memory Retention Policies: Strict in-memory bounds on retained request count (
maxRequests), individual body size (maxBodySizeBytes), and total body budget (maxTotalBodyBudgetMB) with automatic body eviction.
- Security & Privacy First: Automatically redacts
Authorization, Proxy-Authorization, Cookie, Set-Cookie, and sensitive query parameters (token, api_key, secret, password) in UI, cURL, and exports.
- cURL & HAR 1.2 Export: Copy sanitized cURL commands directly to your clipboard or export entire network sessions to standard HTTP Archive (HAR 1.2) for analysis in Charles, Proxyman, or Postman.
- Native VS Code Look & Feel: Built exclusively with official VS Code theme variables and accessible styling supporting both Dark and Light themes.
Installation & Getting Started
1. Install Extension
Download the .vsix file or install from the VS Code Extensions panel:
code --install-extension flutter-network-inspector-1.0.3.vsix
2. Launch Your Flutter Application
Start your Flutter app in VS Code debugging mode (F5 or Run -> Start Debugging).
3. Open the Network Inspector
Open the Flutter Network Inspector by clicking the Network icon in the VS Code Activity Bar (left sidebar) or via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
Flutter Network Inspector: Open Inspector Panel
4. Connection
Optional Companion Dio Interceptor
For standard JSON REST APIs, zero application changes are required.
If you are using multipart FormData uploads, custom network adapters (such as cupertino_http or cronet_http), or need explicit DioExceptionType inspection, integrate the optional companion interceptor:
pubspec.yaml
dependencies:
dio: ^5.0.0
flutter_network_inspector_dio: ^1.0.0
In Your Dart Code
import 'package:dio/dio.dart';
import 'package:flutter_network_inspector_dio/flutter_network_inspector_dio.dart';
final dio = Dio();
dio.interceptors.add(DioNetworkInspector());
Extension Settings
Configure the extension in VS Code Settings (Preferences -> Settings -> Flutter Network Inspector):
| Setting |
Type |
Default |
Description |
flutterNetworkInspector.autoConnect |
boolean |
true |
Automatically connect to running Flutter debug sessions. |
flutterNetworkInspector.pollingIntervalMs |
number |
400 |
Adaptive polling interval (ms) for VM Service HTTP profiling. |
flutterNetworkInspector.maxRequests |
number |
1000 |
Maximum number of retained requests in memory before FIFO eviction. |
flutterNetworkInspector.maxBodySizeBytes |
number |
524288 |
Maximum in-memory size per request or response body (512 KB). |
flutterNetworkInspector.maxTotalBodyBudgetMB |
number |
20 |
Total body memory budget in MB before evicting bodies of older requests. |
flutterNetworkInspector.sensitiveHeaders |
array |
["authorization", ...] |
Headers to redact automatically in UI, cURL, and exports. |
flutterNetworkInspector.sensitiveQueryParams |
array |
["token", "api_key", ...] |
URL query parameters to redact automatically in UI and exports. |
flutterNetworkInspector.debugLogging |
boolean |
false |
Enable verbose diagnostic logging to the Output Channel. |
Development & Testing
Prerequisites
- Node.js (>= 20.x)
- Dart SDK (>= 3.0.0)
- Flutter SDK (>= 3.0.0)
Build the VS Code Extension
npm install
npm run compile
Run Automated Tests
# Run TypeScript extension tests
npm test
# Run Dart Engine unit tests
cd dart_engine
dart test
dart analyze
# Run Companion Dio package tests
cd ../packages/flutter_network_inspector_dio
dart test
dart analyze
# Run Example Flutter test app
cd ../../example
flutter test
flutter analyze
Package into .vsix
npx vsce package
Architecture & Technical Documentation
Author & Maintainer
License
MIT