Ik have created a python test file in VSC. When I run this file it works fine and I see my output in the browser (Dash/Flask). However when I try to debug the file in VSC it gives me an error "No module named test.py" For sure I select the Python debug option.
My file structure is:
-root
-chapter
-test.py
What is the difference in debug and not debug?
2
Answers
I tried some options. In the end this worked for me: "cwd": "${fileDirname}",
Please check your
launch.json
. I have attached mine as a simple reference.By the way, you can debug here