Skip to content

Moritz' Machine Learning Blog

  • All Projects
  • Research Projects
  • Teaching Projects
  • About Me

Tag Archives: python

Setting the VSCode Pythonpath

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.

Posted bymoritz30/09/202530/09/2025Posted inAll ProjectsTags: python, vscode

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.

Posted bymoritz30/04/202319/09/2023Posted inUncategorizedTags: python, vscode
Moritz' Machine Learning Blog, Proudly powered by WordPress.