How do I set my workspace folder in Visual Studio Code?
This appears to be necessary for debugging, and I suspect it's why my breakpoints aren't getting hit.
Further reading:
How do I set my workspace folder in Visual Studio Code?

Now your workspace folder is shown in the left pane :-)

Create a launch.json and set your workspace in "cwd"
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "*your/new/workspace/*",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"RedirectOutput"
]
}
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With