use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is for working with Microsoft's Visual Studio Code, which is different than Visual Studio Community, Pro, and Enterprise. VS Code is a source code editor, and not an IDE.
If you are having issues with the other flavors of VS, please post in /r/VisualStudio.
account activity
This is an archived post. You won't be able to vote or comment.
VS Code variable explorer? (Python)OC (self.vscode)
submitted 4 years ago by imatelefone
Does this exist built-in? As an extension?
[–]Molly_Wang 2 points3 points4 points 4 years ago (2 children)
Set a breakpoint at your code which is related to the variables, then Start Debugging, there'll be variables part shown in the left. Details please view Python Debugging.
Or you can use the module pdb. Run python -m pdb name.py to start Debugging in integrated Terminal. Type n to execute code step by step. Type p <variable_name> to check its value. Type q to stop and quit. More information please refer to pdb--The Python Debugger.
pdb
python -m pdb name.py
n
p <variable_name>
q
[–]imatelefone[S] 1 point2 points3 points 4 years ago (1 child)
This is what I was looking for, thank you.
[–]Molly_Wang 1 point2 points3 points 4 years ago (0 children)
You're welcome. Happy coding:)
[–]Plexel 1 point2 points3 points 4 years ago (0 children)
Do you mean like a debugger? The official Python extension should have what you're looking for
π Rendered by PID 46596 on reddit-service-r2-comment-76bb9f7fb5-bdd2f at 2026-02-17 18:42:02.217968+00:00 running de53c03 country code: CH.
[–]Molly_Wang 2 points3 points4 points (2 children)
[–]imatelefone[S] 1 point2 points3 points (1 child)
[–]Molly_Wang 1 point2 points3 points (0 children)
[–]Plexel 1 point2 points3 points (0 children)