How can I expand arrays / maps when viewing variables in debug mode? #16165
|
I'm able to view a listing of variables and their values while debugging with Helix by pressing |
Replies: 1 comment
|
Short answer: you cannot expand them, and it is not a setting you are missing. The variables popup only ever fetches and renders the top level.
// TODO: allow expanding variables into sub-fields
The loop below it pushes only The mildly annoying part is that the data needed to recurse is already parsed. Helix's There is no eval or REPL escape hatch either. The complete DAP command set is 16 commands ( The workaround that does work: logpointsHelix does support breakpoint log messages, and that is the one way to get nested values out today. On the line you care about, press Most adapters interpolate will print the expanded value. Interpolation is optional in the DAP spec, so it depends on your adapter. If nothing shows up, that is why. One thing that probably cost you time before you asked: the book has no debugger page at all, so there was nothing to find. The DAP support is undocumented outside the source and the keymap. Checked against master at 079a789. |
Short answer: you cannot expand them, and it is not a setting you are missing. The variables popup only ever fetches and renders the top level.
dap_variablesasks the adapter for the variables of each scope once, then formats each one into a plain text popup. There is a TODO sitting directly above the code that does it:// TODO: allow expanding variables into sub-fieldshelix-term/src/commands/dap.rs:558The loop below it pushes only
name,typeandvaluefor each variable (dap.rs:578-589), and the result is turned into aPopupbuilt fromText(dap.rs:593-595). That widget has no selection or fold state, so there is nothing to press a key on even if you wanted to bind one.The mildly annoy…