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

fix(dap): validate key and index exist when requesting vars #5628

Merged

Conversation

filipdutescu
Copy link
Contributor

@filipdutescu filipdutescu commented Jan 21, 2023

Check if the stack frames contain the thread id and the frame before trying to get the frame id. If case any of the two fails to be found, provide the user with messages to inform them of the issue and gracefully return.

Closes: #5625
Signed-off-by: Filip Dutescu filip.dutescu@gmail.com

@filipdutescu filipdutescu force-pushed the fix/dap_list_variables_boundaries branch from b2cf135 to 24ca949 Compare January 21, 2023 22:22
@the-mikedavis the-mikedavis added C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from a maintainer. A-debug-adapter Area: Debug adapter client labels Jan 21, 2023
@filipdutescu filipdutescu force-pushed the fix/dap_list_variables_boundaries branch from 24ca949 to c31fc15 Compare January 22, 2023 09:30
Check if the stack frames contain the thread id and the frame before
trying to get the frame id. If case any of the two fails to be
found, provide the user with messages to inform them of the issue and
gracefully return.

Closes: helix-editor#5625
Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
@archseer archseer merged commit 44729fb into helix-editor:master Feb 20, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
…itor#5628)

Check if the stack frames contain the thread id and the frame before
trying to get the frame id. If case any of the two fails to be
found, provide the user with messages to inform them of the issue and
gracefully return.

Closes: helix-editor#5625

Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debug-adapter Area: Debug adapter client C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DAP get variables request can fail if no breakpoint is hit before it being requested
3 participants