Home > database >  Python Projects In VSCode Exit With "code=1" When I Try to Run Them as Code
Python Projects In VSCode Exit With "code=1" When I Try to Run Them as Code

Time:10-08

Title.

The specific message is:

[Running] python -u "d:\VSCode Projects\python.py"

[Done] exited with code=1 in 0.286 seconds

Non-python(specifically c ) projects work fine. Running and debugging the python file itself work normally. To be honest, I have no idea what the difference between running the code and running the file is. Would like to know the difference and why running the code doesn't work, as well as how to fix it if possible.

Thanks

CodePudding user response:

enter image description here

  1. Run Code

This option is provided by the extension enter image description here

  • Related