Support the equivalent of Autos in VS #1202
Replies: 3 comments
-
It would be nice to have something like VS Autos, but I don't think we can do this from ptvsd end. In VS, the way this works is that the language extension (not the debugger) provides a service that the IDE can use to get the list of variables that are "around" a certain line of code, and the IDE then uses that information to figure out what goes into Autos. The debugger itself isn't even aware of that filter. And there's no equivalent to There's also no VSCode UI extensibility point that would allow us to implement custom sorting in Variables pane. That is, we can order them arbitrarily when providing them to the IDE - but there's no way to add a selector to the UI that would allow you to choose whether to order by name or by proximity. |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for the in-depth answer! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
When debugging a module with many variables, it would be great if the outputs in the debugger could not only be sorted by name, but also by the order of ccess. If this were possible, the last few variables could always be displayed atop the watches.
This would be similar in function to the "Autos" view in Visual Studio, which shows variables used around the current breakpoint: https://docs.microsoft.com/en-us/visualstudio/debugger/autos-and-locals-windows?view=vs-2019
Beta Was this translation helpful? Give feedback.
All reactions