Description
Description
Similar to IntelliJ, VS Code, PyCharm etc. show values of variables used on each line during debugging. This should occur during a pause of the session (ie breakpoint was hit, waiting for next step into/out/over etc.). The values should probably only de shown for the current scope (the scope in which debugging is paused).
Design-wise, I propose the following alternatives, of which I prefer the first the best.
Proposal
Follow VSCode's approach to it (described in their documentation), which means using both language servers and debugging adapters, since the latter will probably not support it directly (source). The general mechanism appears to be:
- Request the list of variables local to the current scope.
- Request the values of said variables from the debug adapter
- Show the received values
From discussions with @pascalkuthe on the Matrix channel, it seems like this approach is pretty new and lacks mass adoption, at the time of writing. However, I still think there is value in implementing it prior to said adoption, to make it so Helix in ready to use it, as soon as it reaches the required parties.