-
Notifications
You must be signed in to change notification settings - Fork 336
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
main isolate is paused in the debugger #2870
Comments
That is a floating toolbar intended to notify you when your app is paused at a breakpoint. Some parts of DevTools will not work when your app is paused. If you click the green resume button, your app should resume and DevTools should work as intended. |
@kenzieschmoll thanks for replying. I have tried that many times, and it inconsistently works. now sure how to get more diagnostics on the problem. |
do you have a breakpoint that keeps getting hit? Can you switch to the debugger tab to resume? |
I've been trying to get a video of it happening, but of course, it is working now. While I had breakpoints set in vscode, none of them were hit. When I pressed the green button on the floating toolbar, nothing happened. |
@kenzieschmoll i do have a video capturing it, but am not sure if it will be helpful at all. there are no breakpoints which are pausing execution and I do hit the green go button a couple times. Screen.Recording.2021-04-06.at.5.25.19.PM.mov |
It's hard to tell from the video, but has your app completely finished launching from VS code? |
The Chrome window shows an "Awww, snap!" error, which may be related. Do you have |
@DanTup thanks for referencing! I do suspect it is related to one of two problems that are going to be fixed in dart-lang/webdev#1296:
@matthewchung74 do you see the same issue if there is only one breakpoint in your app, in main (and no breakpoint in any part files)? |
@DanTup not deliberately using any part files. i am importing a number of firebase libraries and riverpod, might be used in there? I uploaded the repo : https://github.com/matthewchung74/flutter_debug . it's just the start of a flutter web project using firebase email magic link. @annagrin it's not happening right now, but once it does, I'll try to reproduce with 1 breakpoint in main. I did notice last night when I shut down on my mac, there were a couple chrome processes that were unresponsive and difficult to kill. |
It happened to me a couple of times over the week, although I haven't been able to isolate it. Each time, I had a lot of breakpoints set. I did notice if I removed all my breakpoints, the issue went away. |
i can close this for now, and if I find a way to reproduce, will reopen. |
I get this error when flutter web
not that it matters, but have tried using vscode
and command line too
The text was updated successfully, but these errors were encountered: