-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support inspecting widget tree of multi engine #6640
Comments
hi @hyiso what do you mean by other "engine"? |
In my case, there are two Flutter Engines exist at the same time. The first Flutter Engine shows one Flutter page, and the second Flutter Engine shows another Flutter page I want to use devtools' inspector page to inspect the widget tree of the second Flutter Engine, but the inspector page only shows the first Flutter Engine's widget tree I have no idea how to select the second Flutter Engine to inspect |
DevTools can only connect to a single Flutter app at a time. If you are running a separate flutter app, this will have its own instance of DevTools to debug with. How are you opening DevTools?
|
These two engines are in one app, in add2app scenario The DevTools inspector page is opened in browser from VS Code after running There is no other debug session that I can found to select |
I'm not very familiar with add2app. When we say "two engines" here, do we mean "two Dart VMs" or a single VM with multiple isolates? If there are two VMs it seems like there should be two VM Service URIs and you could "attach" to each of them from VS Code to get two sessions, although it also feels odd to need two VMs in a single app for two views. |
These two engines are created via FlutterEngineGroup, I have not seen any option to select session from VS Code when running There was only one VM service URI printed to console when entering Flutter page. The reason why we need two engines is irrelevant here |
There is a similar scenario with ContentProvider in my Flutter plugin, which I described here nt4f04uNd/android_content_provider#16 (comment) |
I have the same issue. I use add-to-app with a Multi-engine approach/flavor, see https://docs.flutter.dev/add-to-app/multiple-flutters. So, I have android app with 5 bottom bar tabs, 2 of them are |
Currently, when using flutter attach, the widget tree in Flutter Inspector page only shows first engine's widget tree, we can't choose to see widget tree of other engine.
The text was updated successfully, but these errors were encountered: