-
Notifications
You must be signed in to change notification settings - Fork 82
Usage with Flutter web not obvious/documented #1268
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
Comments
I think this was a conscious decision. Flutter Tools can easily update the
Is this a release or debug build? If it's a debug build then there certainly should be injected metadata that the extension recognizes.
That's not what I'm seeing at head
This is expected. The DevTools displayed there should just be the inspector while the debugging portion is expected to be used from VS Code. |
I do not want to support alt-D debugging - the tool is trying to manage the devtools lifecycle, specifically making sure that when the tool is run through an IDE that we re-use the existing devtools instance. It would be nice if we could disable this shortcut entirely |
Ah, I didn't realize the flutter CLI had all those options. And I hadn't come across it in documentation. A search for "flutter webv how do I launch devtools" has as the second hit this page, which tells me to run the devtools server manually. https://flutter.dev/docs/development/tools/devtools/cli , and that's the only link on the first page that sounds like it's at all the right thing.
Debug. But it sounds like the Alt-D isn't enabled, and that's why.
Apparent brain failure at my end. I do see that URL printed.
OK, that's working as expected. |
However, in 2.0.1, when I press 'v' in the CLI, it prints a newline and does nothing else obvious. |
the 'v' feature has been removed from flutter command line options. For non-web platforms, a link to DevTools is printed to console after the observatory url. This has not yet been implemented for web. We should probably add this to the We originally left this off because DevTools web support is not great, so we didn't want to be pointing users to something that doesn't work well. But if we disable the pages in DevTools that do not have robust web support (which we already do for the most part IIRC), we could launch DevTools at app start for web apps just like we do for native apps. cc @jacob314 |
There's really no reason why we shouldn't surface DevTools from the command line for Flutter Web. In fact I would prefer that we do so that we may get more error reports. @jacob314 can you prioritize this work? We should open a tracking issue on the Flutter and or DevTools repository. |
Filed flutter/flutter#77975. |
Great. Closing this one out. |
Trying to use Flutter web and get to DevTools.
The text was updated successfully, but these errors were encountered: