-
Notifications
You must be signed in to change notification settings - Fork 321
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
Show the debugger in DevTools when launching from VS Code #1792
Comments
Going through some old issues - @DanTup do we still add the |
Yep, we still pass this if you open the non-embedded version. Removing it makes it easy to have two debuggers connected which will cause issues with restarts (it's not clear who is re-sending breakpoints, or resuming after the restart). There was talk of using DDS to improve this, but I don't know if that's done (or if so, whether DevTools and VS Code need updating to handle it) - I guess a question for @bkonyi? |
Are you talking about the client synchronization support that was added awhile back? |
That certainly looks like some of it, yes! :D Is there help for breakpoints too? To prevent VS code wiping DevTools breakpoints or vice-versa? And is DevTools updated to already use the API(s) above? |
Nope, this basically just prevents another client from resuming underneath you while trying to reset breakpoints. The best way to handle this right now is probably to track which breakpoints your client has set and only reset them after a reload, leaving the other clients responsible for their own breakpoints. |
Ah, got it. I'll look at adding this to the new SDK DAP (I don't think it makes sense to add to the old one we'll soon migrate away from). I think we'll need to ship it both there and in DevTools before we can safely enable the debugger tab (which might take a little while for VS Code, I suspect the switch over to SDK DAPs will probably start quite slowly - and there still a few small things to complete before that can start). |
+1 to leveraging the https://github.com/dart-lang/sdk/blob/master/pkg/dds/dds_protocol.md#requirepermissiontoresume API. Only leveraging it in the DAP is fine. We'll need to also use the API in DevTools and verify that DevTools only reapplies its breakpoints and not al breakpoints. |
The VS Code debug adapters now use |
Steps to Reproduce
I am running the following setup which is generally working fine:
Whenever I want to debug my app on the iOS simulator or device, I select
Dart: Open DevTools
in vscode.But for some reason, the Debugger tab is deactivated in Chrome as you can tell from the screenshot:
Is there any way to enable debugging inside Chrome DevTools by default? Stripping away
hide=debugger
from the URL serves the purpose, but I prefer to avoid this doing manually.Thanks!
The text was updated successfully, but these errors were encountered: