Skip to content

Use the pause event's topFrame to satisfy initial top-frame request #2974

@DanTup

Description

@DanTup

When the debugger pauses and we get a pauseEvent, it contains the topFrame of the stack. We currently ignore this, and when asked for the call stack, send a getStack() request to the VM.

VS Code asks us first for the top frame, and then for the next 20. We could save a round trip to the VM (and causing two concurrent getStack() requests) when the stackTraceRequest is for only the top frame and the current pauseEvent for the isolate contains a topFrame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.is performance

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions