Skip to content

Debugger needs a way to show stacktraces for all waiting async callsΒ #55561

Open
@lukehutch

Description

@lukehutch

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.

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-enhancementA request for a change that isn't a bugvm-serviceThe VM Service Protocol, both the specification and its implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions