title: Flask debug mode stuck at "Restarting with stat"
body: <p>I don't know what have happened, but after months of developing a PythonFlask project, I suddenly cannot run it in debug mode. Python gets stuck at displaying:</p>
  
  <ul>
  <li>Restarting with stat</li>
  </ul>
  
  <p>When running via Visual Studio, it just remains like that, the IDLE Python Shell waits there for a bit and then returns to >>> prompt as the program has escaped without any errors.</p>
  
  <p>The problem isn't in my code, the same happens when simply trying to run an empty Flask app:</p>
  
  <pre><code>from flask import Flask
  Flask(__name__).run(debug=True)
  </code></pre>
  
  <p>If debug is on False, it all runs perfectly, but that makes development significantly more uncomfortable.</p>
  
  <p>I've tried a couple of Python versions, even re-installed, didn't work.</p>
  
  <p>What could be the problem?</p>