Skip to content

Debugger: show variable values as inlay hints #921

@PaulKlint

Description

@PaulKlint

In the debugger we want to optimize the amount of user-interaction that is needed to get relevant information.
Hovering over a variable name and getting its value as a pop-up mini-window is already great.

I propose to provide the current values of variables as inlay hints as in:

void main(){
         int y = 1; 
         for(int x <- [1..10){  // inlay-hint x = ...
               y += x;          // inlay-hint y = ...
         }
}

Points to ponder:

  • If values are too large this may become a mess, may be only do this when textual size is below a fixed threshold
  • If these values are shown for all variables it may also become a mess, so a policy is needed to restrict the display of these hints:
    -- Only when hovering over a line?
    -- Only when at a breakpoint?
    -- Provide a filtering mechanism to restrict the variables to show?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions