You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger stuck on waiting for connection from debug service on chrome when trying to run on web using Flutter 2.x #4370
setIsolatePauseMode: NoSuchMethodError: Class 'ChromeProxyService' has no instance method 'setIsolatePauseMode' with matching arguments.
Receiver: Instance of 'ChromeProxyService'
Tried calling: setIsolatePauseMode(\"1\", exceptionPauseMode: \"Unhandled\", shouldPauseOnExit: null)
Found: setIsolatePauseMode(String, {String exceptionPauseMode, bool shouldPauseOnExit}) => Future<Success>
This was a bug in earlier versions of Flutter (dart-lang/webdev#1627). It's since been fixed but you'll need to upgrade Flutter to a more recent version to get the fix (the current version is 3.7).
The reason it works from the command line is that this doesn't set up the debugger, which avoids the code that is failing.
Please let me know if you still have the issue after upgrading!
to continue using in older versions of flutter I used version 3.56.0 of the dartcode extension.
Oh, I see what's happened here. The new version of the extension is using a new version of the API, but there's a mismatch between the VM Service version that supports this in DWDS (web) versus the standard VM.
This is unfortunate, although since the latest stable versions of everything are working (and using the previous extension works around the issue) I think it's probably not worth trying to find a way to handle this for now. If it turns out the issue is widespread, we can re-visit this.
I'm getting this issue revisiting a flutter web project there hasn't been touched for 7 months - so very likely one of the latest dart extension upgrades is the culprit - its very annoying and i do not really wanna do a 2.x 3.x upgrade as we're close to go-live for a large client
changed the title [-]Debugger stuck on waiting for connection from debug service on chrome when trying to run on web[/-][+]Debugger stuck on waiting for connection from debug service on chrome when trying to run on web using Flutter 2.x[/+]on Feb 13, 2023
I've updated the version for when the extension start using the new API to something I believe works for both cases. If you switch to the Pre-release channel for the extension, you'll get this fix now without needing to use an older version of the extension:
You can switch back to the stable versions of the extension after the next release (or, stick with this - it should generally be stable anyway, as it's usually only published to make fixes like this available to people a little sooner).
And I can confirm that it works like a charm - thanks a lot for stepping up
to help on this - we had a very good demo for a German Client last friday
and now we can debug our accompanying dashboard too!
[image: image.png]
Best Regards, Palle S.
On Mon, Feb 13, 2023 at 2:22 PM Danny Tuppeny ***@***.***> wrote:
I've updated the version for when the extension start using the new API to
something I believe works for both cases. If you switch to the Pre-release
channel for the extension, you'll get this fix now without needing to use
an older version of the extension:
[image: Screenshot 2023-02-13 at 12 19 54]
<https://user-images.githubusercontent.com/1078012/218456057-b695fd12-3db0-471e-acd8-4c267993680b.png>
You can switch back to the stable versions of the extension after the next
release (or, stick with this - it should generally be stable anyway, as
it's usually only published to make fixes like this available to people a
little sooner).
—
Reply to this email directly, view it on GitHub
<#4370 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAP6EPLFFGWTDHPABPNNFRDWXIROVANCNFSM6AAAAAAUMMWKPI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
I had the same issue on a Flutter 2.10 project using Android Studio and Flutter plugin (version 73).
As suggested by previous comments, I have installed previous release of Flutter plugin (version 72) manually and it is now working fine.
Activity
DanTup commentedon Feb 1, 2023
@felipefranca824 from the error in your screenshot, it looks like there is a problem with the code (trying to use
??after a non-nullable variable).Does fixing that issue resolved the problem?
If not, can you produce a small sample project that triggers this issue that you can share? Thanks!
felipefranca824 commentedon Feb 2, 2023
@DanTup

Reproduced in a new project
doesn't come out of it.
but if i run by command line "fllutter run -d chome" it works
DanTup commentedon Feb 2, 2023
@felipefranca824 can you reproduce this reliably?
Did you make any changes to the sample project, or run it as is (and how did you start it?).
Could you try capturing debugging logs while reproducing it (using the sample project)?
Thanks!
felipefranca824 commentedon Feb 2, 2023
@DanTup
I ran the project without any modifications.
I sent the log file to your email
DanTup commentedon Feb 2, 2023
@felipefranca824 thanks! I found the issue in your log:
This was a bug in earlier versions of Flutter (dart-lang/webdev#1627). It's since been fixed but you'll need to upgrade Flutter to a more recent version to get the fix (the current version is 3.7).
The reason it works from the command line is that this doesn't set up the debugger, which avoids the code that is failing.
Please let me know if you still have the issue after upgrading!
felipefranca824 commentedon Feb 2, 2023
After updating the problem was solved.
to continue using in older versions of flutter I used version 3.56.0 of the dartcode extension.
thanks
DanTup commentedon Feb 7, 2023
Oh, I see what's happened here. The new version of the extension is using a new version of the API, but there's a mismatch between the VM Service version that supports this in DWDS (web) versus the standard VM.
This is unfortunate, although since the latest stable versions of everything are working (and using the previous extension works around the issue) I think it's probably not worth trying to find a way to handle this for now. If it turns out the issue is widespread, we can re-visit this.
Thanks!
psimondk commentedon Feb 11, 2023
I'm getting this issue revisiting a flutter web project there hasn't been touched for 7 months - so very likely one of the latest dart extension upgrades is the culprit - its very annoying and i do not really wanna do a 2.x 3.x upgrade as we're close to go-live for a large client
DanTup commentedon Feb 13, 2023
@psimondk the quickest fix would be rolling back the Dart extension to v3.56:
I'll have a look to see whether there's a version we can gate on that avoids this issue for both web/non-web.
[-]Debugger stuck on waiting for connection from debug service on chrome when trying to run on web[/-][+]Debugger stuck on waiting for connection from debug service on chrome when trying to run on web using Flutter 2.x[/+]DanTup commentedon Feb 13, 2023
I've updated the version for when the extension start using the new API to something I believe works for both cases. If you switch to the Pre-release channel for the extension, you'll get this fix now without needing to use an older version of the extension:
You can switch back to the stable versions of the extension after the next release (or, stick with this - it should generally be stable anyway, as it's usually only published to make fixes like this available to people a little sooner).
psimondk commentedon Feb 19, 2023
lbevilacqua commentedon Feb 22, 2023
Hello,
I encountered the issue too on a Flutter 2.10.5 project.
Using the Dart extension pre-release version solved it.
Thanks
sperochon commentedon Apr 20, 2023
Hello,
If it can help someone...
I had the same issue on a Flutter 2.10 project using Android Studio and Flutter plugin (version 73).
As suggested by previous comments, I have installed previous release of Flutter plugin (version 72) manually and it is now working fine.
Here are the steps :
I have downloaded the zip plugin file here (be careful to select "compatibility" to "Android Studio"):
https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable
Then installed the file manually as described here :
https://stackoverflow.com/a/17358862/1836827
And it works :-)
Stick with setExceptionPauseMode for older SDKs