Relative Content

Tag Archive for pythonvisual-studio-codevscode-debugger

Limit of Python call stack variables in Visual Studio Code

I’m using Visual Studio Code to debug a Python program with a deep, recursive call stack.
The debugger shows the entire call stack, but it seems that the “Variables” view, showing the local variables at each place in the call stack, only gets updated when I select one of the few first or last of the stack frames.

Run in vscode does nothing

When I try to run any python script in my venv in vscode nothing happens except the debug tool bar pops up briefly and goes away. Didnt have any issues now its not working without me knowingly changing anything. I can run properly if I manually type the program into the python terminal. Is there a way to tell what vscode is trying to run?

VSCode and debugging in venv

I have a issue in a python project in VSCode where the debugger does not stop at breakpoints and I am unable to inspect variables. The environment is Windows 10 and the project is using a venv.

VS Code shows “No such file or directory” when I “Run” a Python script but executes it successfully after “Run and Debug”

I am new to programming and I wanted to find an explanation for something I found odd in VS Code.
I was trying to execute a piece of Python script that looks functional, but found the error “No such file or directory” when I “Run” the code. The code involves reading a csv file and I tried to use different formats of relative and direct reference for the csv file to no success, so I turned the csv file into a text file and tried to do the same. The odd thing is the code only executed when I “Run and Debug” it using Python Debugger.