« Minimal Reproducible »

Home Tags About GitHub

set-the-working-directory

Published at 2024-01-23
Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 softwares-and-toolsvscodedebugpython

ref: https://stackoverflow.com/questions/38623138/how-to-set-the-working-directory-for-debugging-a-python-program-in-vs-code

In launch.json, specify a dynamic working directory (i.e. the directory where the currently-open Python file is located) using:

"cwd": "${fileDirname}"

« Minimal Reproducible »

Powered by Astro