0

I'm fairly new to visual studio and I cant seem to figure out what's wrong with the code. So I'll give an example if I write something like print("Hello World") it won't print what it says instead it would give a random number. This is what I just put:

print("hello world")

This is what I receive in the output

[Running] python -u "/Users/deep/vscode folder/app.py"
5

[Done] exited with code=0 in 0.264 seconds

Forgive me for this simple question but I've tried looking on the web, I haven't found anything here's a screenshot

deepsingh
  • 37
  • 1
  • 6
  • It says Unverified breakpoint. File is modified, please restart debug session, what should I do? – deepsingh Mar 06 '21 at 21:25
  • You need to save the modifications, if you look at the tab at the top, right next to the file name, there is a circle, this means that the file has unsaved changes. After saving it, you can try re-running the application. – Jason Rebelo Neves Mar 06 '21 at 21:38
  • oh my god, I apologize for this basic question. lol, I was using pycharm before this so it's a little different. – deepsingh Mar 07 '21 at 00:44

1 Answers1

0

In the picture, you can see that in the tab of your app.py file, there is a white dot. It means that the file is not saved. So, it is running the previous code. To save the file, press Ctrl S. To auto save, Go to Settings and search Auto Save. Then select your preference on when to auto save.

Arib Muhtasim
  • 147
  • 2
  • 8