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

Idea for ambiguous debug step selection without "Step into targets" #70

Open
sim642 opened this issue Apr 25, 2024 · 0 comments
Open

Idea for ambiguous debug step selection without "Step into targets" #70

sim642 opened this issue Apr 25, 2024 · 0 comments
Labels
debugger Abstract debugger enhancement New feature or request

Comments

@sim642
Copy link
Member

sim642 commented Apr 25, 2024

While DAP doesn't allow arbitrary user choice reverse requests, LSP seems to. Since GobPie is both LSP and DAP, we could maybe abuse this to do LSP user choices for answering DAP requests like this:

sequenceDiagram
    participant VSCode
    box Goblint
        participant DAP
        participant LSP
    end
    VSCode->>+DAP: Next request
    LSP->>+VSCode: ShowMessage reverse request with actions
    VSCode-->>-LSP: ShowMessage response with selected action
    DAP-->>-VSCode: Next response
Loading

This is just an idea though. It could very well be that this sort of abuse doesn't work in practice, e.g. because VSCode doesn't allow LSP user prompts in the middle of DAP sessions or whatnot.

@sim642 sim642 added enhancement New feature or request debugger Abstract debugger labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Abstract debugger enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant