Description
Sometimes my Flutter app gets stuck on the Android splash screen, and never starts up the Flutter router. I suspect this may be due to one of several async Dart calls, in the initialization of main
, preventing the Flutter app from starting, (in other words, I suspect that one of them is awaited indefinitely). However, I have no way to determine exactly where the code is stuck, because when I click Pause (in VS Code), The debugger call stack sub-window says "Paused on pause", and then shows no stacktrace.
When I click Pause, I would expect to be able to see a list of all current async calls that are awaiting completion (similar to a list of running Threads, in a Java debugger), and I should be able to view the stacktraces of all of them, to determine which async call is holding up execution by not completing.