VSCode: How to Set Working Directory for Debugging a Python Program
When a Python program behaves differently in VS Code than it does in your terminal, the working directory is often the reason. Relative paths such as data/input.csv, settings.json, or ./logs/app.log are resolved from the current working directory, not necessarily from the file you are debugging. In VS Code, the Python debugger reads its launch settings … Read more