When editing a Python-Package in Vscode the debugger will set the Pythonpath to the current file by default, even though it should be the package root most of the time for things to work correctly. When that happens the launch.json below fixes the problem.
Tag Archives: python
Vscode-Python module debugging
As I spend too much time looking for this on the internet, I am posting an example launch.json for future reference: Replace the module path after “module” and the arguments in the “args” block with more suitable values.