Home > Mobile >  VS Code not identifying any changes made to the code:
VS Code not identifying any changes made to the code:

Time:07-20

Any changes I make to my code aren't doing anything. I am using three things html, flask and python. Any code change I make to my python or html code is not getting implemented on the browser when I am trying to run it.IT is only running older version of the code. How can I rectify this error of vscode?

CodePudding user response:

Make sure you're refreshing the page if you're opening a HTML file. If you're accessing the python server make sure to restart it every time you make changes to the code. The way to do it is ctrl c in the terminal and running the command again. There are ways to make this happen automatically, refer here for more information

CodePudding user response:

Did you start your flask server in debug mode?

from Python

app.run(debug=True)

or from terminal

$ export FLASK_DEBUG=1
$ flask run

CodePudding user response:

Try to run in incognito once. Or try after clearing cache.

  • Related