dart-lang / dart-lang/webdev

Debug stepping/pausing with Dart Debug extensions is very slow with remote servers

Open
#975 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
224
Forks
94
Avg merge
7h 14m
Merged PRs (30d)
2

Description

When running on GitPod, it takes around 10 seconds for a breakpoint to be hit. I previously assumed this was [the Chrome issue](https://github.com/dart-lang/sdk/issues/39187) but if I open the inspector for the extension, I see around 138 (sequential) requests when a breakpoint was hit, ranging from 25ms to over 2s adding up to around 10s.

Screenshot 2020-04-29 at 14 13 42

We're forcing WebSockets for the VM Service proxy from VS Code, but I don't think they're currently supported for the debug extension backend - I wonder if that would make a significant difference here?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the breakpoint delay on GitPod or another remote server and inspect the Dart debug extension backend through its inspector. Trace the VM Service proxy path used by VS Code, including the forced-WebSocket configuration, and compare the sequential requests during stepping or pausing. Done means the cause is established and remote debugging no longer incurs the reported excessive delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.