The goal is to be able to use my environment setup from Conda/Anaconda within the visual studio code debugger. The default pythonpath configuration does not produce this eff
On MacOS, follow these steps:
Install Python for VSCode (the most popular python extension)
Go to Workplace Settings by pressing Cmd ,
or navigating from the top menu.
Add the path of your specific conda environment, like seen above, to your settings.json
file. You can find the paths of your conda environments by typing conda env list
in terminal.
Save and restart VS Code
Now the debugger will automatically use that environment! As far as I know, you must do this individually for each project.
For other ways of configuring your python path, here is a useful post by the extension author: https://github.com/DonJayamanne/pythonVSCode/wiki/Python-Path-and-Version