-
Notifications
You must be signed in to change notification settings - Fork 213
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
Replace broken Observatory URL with DevTools URL #2185
Comments
This is important for the work to support DevTools extensions for dart tests: flutter/devtools#7183. |
This will require two changes:
For 1), @a-siva is currently working on a CL to launch DDS (and also serve DevTools) from the VM service isolate instead of from DartDev, so we'll get this for free once that work is done. For 2), changing the messaging should be easy enough, but I'm not sure we'll be able to mimic the prior behavior since the DevTools debugger doesn't support navigating to a library based on a query parameter like Observatory does. |
I think this is okay. The user can decide what type of debugging they want to do once they get into DevTools. |
Sure, but it definitely won't be as user friendly since navigating to the debugger will dump the user in the root library which will be generated code. Not the end of the world (especially considering this link has been broken for over a year now and no one filed an issue), but it's not the ideal UX. |
I am not worried about losing some behavior today, because it sounds like the current thing doesn't work at all? |
For sure. Getting something working is better than nothing, but we might want to fix this UX in the future if anyone actually uses it and complains... :-) |
Has this been resolved?
What is the correct Uri for dev tools generally? If we cannot deep link to the library I think we can resolve that later. |
It doesn't look like moving the DDS launch logic to the VM service handles the
This might be context dependent at this point. For the standalone VM, the URI is always of the form For |
This will be resolved once https://dart-review.googlesource.com/c/sdk/+/366560 lands. |
The above CL has landed, so we can now serve DDS and DevTools from |
@bkonyi what are the next steps here since https://dart-review.googlesource.com/c/sdk/+/366560 was reverted? |
That change was relanded last week so work can move forward here. |
Towards #2185 The Observatory UI is no longer served and the current URL does not work. Dev Tools does not support deep linking to a particular isolate or library, so link to the overall devtools app for now.
When I try this devtools seems to send a resume event as soon as I open the UI in a browser. Is there a way around this? It breaks the test runner workflow. |
@kenzieschmoll is there any way to launch devtools without resuming the VM? |
When running a test with
dart test foo_test.dart --pause-after-load
, the following is printed to the CLI:This URL is broken. DevTools is also unavailable from this state because there is not a DDS instance.
We should fix this so that when running a test with
dart test
for debugging, DevTools is served properly and the user can access if from a URL printed to CLI (Flutter tools does this properly forflutter test
).CC @jakemac53 @bkonyi
The text was updated successfully, but these errors were encountered: