You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could we provide more details of the variable when debug like the PyCharm does? #146748
*duplicateIssue identified as a duplicate of another issue(s)debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality
I know, we can get more details through clicking the arrow to get into the variable or through some expression in the WATCH panel. But it will be better to act as the PyCharm does.
Reacted by Kevin-Delnoije, Isaac Cheng, rgimenes26, zljubisic, Nyuan Zhang, 一只快乐的小指针, Kaedehara Kazuha, ghuname, NewUserHa, Bogdan and 37 more
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
I know, we can get more details through clicking the arrow to get into the variable or through some expression in the WATCH panel. But it will be better to act as the PyCharm does.
I agree that there is a lot to improve there. Not only showing the variables views when debugging but when running a python integrated terminal too. Like when we run a Jupyter Notebook. Not only PyCharm but R Studio's Python development do this very wheel. Not only displaying the variables but also when working with Pandas DataFrames (Sorting, Filtering, Page.ing )
In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.
For example compare these two pictures:
and
What do you think which is better?
Furthermore, how to remove function variables, class variables, Optional, jwt, status from vscode?
Pycharm is not showing them and I have never missed them.
In vscode, there is also a problem with showing dataframes.
You can open it in window that you cannot maximize iz order to take the full screen which is very convenient when you have a lot of rows/columns which is normal in data science world.
RStudio python IDLE dataframe viewer. Just type: view(df) in the terminal
Actually any variable you can click in the table if you think it's usefull.
It you open in a new tab. Like this function "f".
I prefer the vscode tree like view, like a dictionary, because its better organized, but the dataframe viewer its very good.
And remember this is all working without the debug mode. just the python terminal, this is the real improvement to do in vscode.
That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.
Well, I actually want the ability to search through the data frame, or something like MyVarsOnlybutton to display vars, functions and classes only from "my code".
That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.
Nyuan Zhang (@BlueGlassBlock) can you please provide the launch.json with "inline" that prevents showing class and function variables.
At least we should be able to have kind of toggle for that.
That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.
Nyuan Zhang (@BlueGlassBlock) can you please provide the launch.json with "inline" that prevents showing class and function variables. At least we should be able to have kind of toggle for that.
Well, what I want to do is show all the class and function variables, not hiding them. Because I mainly use it when I need to tweak dynamically created classes and functions, etc. And inline did that pretty well.
Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.
We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most.
Reacted by Nyuan Zhang, wangshuo182, Kairui Zhang and Toygan
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.
ghuname that's not entirely true, you can drag your variables elsewhere:
Advise fot those who use wayland: such drag does not work currently. To drag that panel I restarted vscodium without --enable-features=UseOzonePlatform --ozone-platform=wayland , and then I could drag that.
In my opinion, shapes are much more useful to display for numpy arrays, torch tensors etc. To a lesser extent - dtypes. Next - to be able to visualise the data.
*duplicateIssue identified as a duplicate of another issue(s)debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality
Activity
karthiknadig commentedon Jan 14, 2022
Related microsoft/vscode-python-debugger#167, this is for the content shown in the code itself.
For the additional information in the variable view it should come from the debugger.
/cc Fabio Zadrozny (@fabioz), Pavel Minaev (@int19h)
karthiknadig commentedon Jan 14, 2022
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
rgimenes26 commentedon Feb 2, 2022
I agree that there is a lot to improve there. Not only showing the variables views when debugging but when running a python integrated terminal too. Like when we run a Jupyter Notebook. Not only PyCharm but R Studio's Python development do this very wheel. Not only displaying the variables but also when working with Pandas DataFrames (Sorting, Filtering, Page.ing )
ghuname commentedon Feb 10, 2022
In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.
For example compare these two pictures:
and
What do you think which is better?
Furthermore, how to remove function variables, class variables, Optional, jwt, status from vscode?
Pycharm is not showing them and I have never missed them.
In vscode, there is also a problem with showing dataframes.
You can open it in window that you cannot maximize iz order to take the full screen which is very convenient when you have a lot of rows/columns which is normal in data science world.
BlueGlassBlock commentedon Feb 14, 2022
It would be nice if sections like
class variablesandfunction variablescan be removed.Instead, place dynamically created functions and classes in the data frame please.
Because sometimes I really need to inspect lots of dynamic functions and classes.
fabioz commentedon Feb 14, 2022
Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your
launch.json(see: microsoft/debugpy#481)fabioz commentedon Feb 14, 2022
ghuname that's not entirely true, you can drag your variables elsewhere:
ghuname commentedon Feb 14, 2022
Fabio Zadrozny (@fabioz) I didn't know that. You are right. It is much better if variables are near terminal region. Sorry for wrong statement.
ghuname commentedon Feb 14, 2022
Fabio Zadrozny (@fabioz) How do you comment this picture?
rgimenes26 commentedon Feb 14, 2022
RStudio python IDLE dataframe viewer. Just type:
view(df)in the terminalActually any variable you can click in the table if you think it's usefull.

It you open in a new tab. Like this function "f".

I prefer the vscode tree like view, like a dictionary, because its better organized, but the dataframe viewer its very good.
And remember this is all working without the debug mode. just the python terminal, this is the real improvement to do in vscode.
This and run code in multiples python iterative terminals like in microsoft/vscode-python#18315 .
BlueGlassBlock commentedon Feb 15, 2022
That worked for me as I configured it to
inline, thanks! It's not presented in the auto suggestion so I missed it.Well, I actually want the ability to search through the data frame, or something like
MyVarsOnlybutton to display vars, functions and classes only from "my code".ghuname commentedon Feb 15, 2022
Nyuan Zhang (@BlueGlassBlock) can you please provide the launch.json with "inline" that prevents showing class and function variables.
At least we should be able to have kind of toggle for that.
BlueGlassBlock commentedon Feb 16, 2022
Well, what I want to do is show all the class and function variables, not hiding them. Because I mainly use it when I need to tweak dynamically created classes and functions, etc. And
inlinedid that pretty well.brettcannon commentedon Mar 31, 2022
Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.
We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most.
9 remaining items
vscode-triage-bot commentedon May 7, 2022
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Ashark commentedon Jul 10, 2022
Advise fot those who use wayland: such drag does not work currently. To drag that panel I restarted vscodium without
--enable-features=UseOzonePlatform --ozone-platform=wayland, and then I could drag that.weinand commentedon Oct 19, 2022
Suggestion form Pavel Minaev (@int19h):
VS Code setting to display the type in the Variables pane
lyjdwh commentedon Dec 7, 2022
Is there a way to customize the order of variables? If so we can put the shape and type on the top of the list!
PengjuYan commentedon Apr 3, 2024
Any progress on this issue? When I talked about this problem, people around me say "vscode is great, and PyCharm is much better". LOL
Really looking forward to solve it before people turn away.
connor4312 commentedon Jul 24, 2024
Missed this feature duplication, this was implemented in #214315 and can be turned on via the
debug.showVariableTypessetting.I realize we also forgot to mention that on last month's release notes, I'll get it on the ones for this month so people are aware :)
thorinf-orca commentedon Jul 29, 2024
Is there any option for shapes too?
pdima commentedon Aug 17, 2024
In my opinion, shapes are much more useful to display for numpy arrays, torch tensors etc. To a lesser extent - dtypes. Next - to be able to visualise the data.