Skip to content
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

debug: improve performance of stepping #197397

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

connor4312
Copy link
Member

Previously we did not show a next-stepped state until the entire
stackframe was retrieved, which led to the issue this fixes #185708.
This queuing was done to prevent torn states in similar fast
transitions.

Rather than queuing, this PR uses a small 'scheduler' that uses a
cancellation token to abort any running operations on a per-thread basis.

I also noticed we didn't fully support allThreadStopped. I added
support for that as well.

Previously we did not show a next-stepped state until the entire
stackframe was retrieved, which led to the issue this fixes #185708.
This queuing was done to prevent torn states in similar fast
transitions.

Rather than queuing, this PR uses a small 'scheduler' that uses a
cancellation token to abort any running operations on a per-thread basis.

I also noticed we didn't fully support `allThreadStopped`. I added
support for that as well.
@connor4312 connor4312 self-assigned this Nov 3, 2023
@connor4312 connor4312 enabled auto-merge (squash) November 3, 2023 19:19
@connor4312
Copy link
Member Author

cc @roblourens

@VSCodeTriageBot VSCodeTriageBot added this to the November 2023 milestone Nov 3, 2023
@connor4312 connor4312 merged commit 491b6d8 into main Nov 3, 2023
7 checks passed
@connor4312 connor4312 deleted the connor4312/issue185708 branch November 3, 2023 20:15
@roblourens
Copy link
Member

🔥

@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug "Step Into" Slow
4 participants