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 console #43

Merged
merged 25 commits into from
Oct 4, 2024
Merged

Debug console #43

merged 25 commits into from
Oct 4, 2024

Conversation

RemcoSmitsDev
Copy link
Owner

@RemcoSmitsDev RemcoSmitsDev commented Sep 29, 2024

Screen.Recording.2024-10-03.at.22.34.34.mov

This PR adds the ability to evaluate code within the debug console. That also has autocompletion for variables, even if the client has not implemented the CompletionsRequest. We will use all the variables from the current stack frame and use them for completion. This is one nice feature that VS Code not has, they only support the CompletionsRequest and if it's not supported they just don't give you autocompletion.

So we do it better🔥


TODO's

  • Refetch all the variables after evaluating
    • Move what variables to fetch to variables_list
  • Support adapter completions
    • If not supported, allow completions for current variables in scope

@RemcoSmitsDev RemcoSmitsDev marked this pull request as ready for review October 3, 2024 20:46
@RemcoSmitsDev RemcoSmitsDev merged commit 842bf02 into debugger Oct 4, 2024
0 of 4 checks passed
@RemcoSmitsDev RemcoSmitsDev deleted the debug-console branch October 4, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant