flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Devtools cannot show traffic while using Dio in Isolate #7019

Open vuldk94 opened 9 months ago

vuldk94 commented 9 months ago

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)

motucraft commented 6 months ago

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?

kenzieschmoll commented 3 months ago

This may have been fixed if this is a duplicate of #3033 , but we will need to repro to verify.

nicks258 commented 2 months ago

Still facing the same issuse is DevTools version 2.34.3 with flutter 3.22.3