flutter / devtools

Performance tools for Flutter

Home Page:https://flutter.dev/docs/development/tools/devtools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Devtools cannot show traffic while using Dio in Isolate

vuldk94 opened this issue · comments

When I am using Dio to run in Isolate to get data from network. Devtools cannot show request,response.
It will work well it I use Dio to run in main thread in flutter.

// Not use Isolate: Devtool can show request and response
Screenshot 2024-01-03 at 11 32 33

// Use Isolate: Devtool can not show request and response
Screenshot 2024-01-03 at 11 34 32

// Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.4, on macOS 13.2.1 22D68 darwin-arm64, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.3)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!


DevTools version: 2.23.1
Connected Device:
CPU / OS: arm64 (64 bit) android
Dart Version: 3.0.3
Flutter Version: 3.10.4 / stable
Framework / Engine: 682aa387cf / 2a3401c9bb
Connected app type: Flutter native (debug build)

I'm facing the same issue. In my case, I was considering using the IsolateClient from ferry.
https://ferrygraphql.com/docs/isolates

How should one approach debugging network communication when using isolates?