title: Breakpoints are not hitting in VS Code while debugging Python Flask app
body: <p>I'm new to Python Flask development and VS Code. I've been trying to create an app by referring the below tutorials. </p>
  
  <p><a href="https://code.visualstudio.com/docs/python/tutorial-flask" rel="noreferrer">https://code.visualstudio.com/docs/python/tutorial-flask</a></p>
  
  <p><a href="https://github.com/Microsoft/python-sample-vscode-flask-tutorial" rel="noreferrer">https://github.com/Microsoft/python-sample-vscode-flask-tutorial</a>\</p>
  
  <p><a href="https://code.visualstudio.com/docs/python/debugging" rel="noreferrer">https://code.visualstudio.com/docs/python/debugging</a></p>
  
  <p>Repo for reference: <a href="https://github.com/iamshivprasad/analytics" rel="noreferrer">https://github.com/iamshivprasad/analytics</a></p>
  
  <p>Cloned folder structure is:</p>
  
  <pre><code>- Development
    - .vscode
      - launch.json
    - analyticspyengine
      - analytics_modules
      - controllers
      - datainterfaces
      - utils
      - __init__.py
      - analyticsservices.py
      - webapp.py
      .
      .
      .
  </code></pre>
  
  <p>I am able to launch the program successfully with below settings in launch.json.</p>
  
  <pre><code>     {
          "name": "Python: Flask",
          "type": "python",
          "request": "launch",
          "module": "flask",
          "env": {
              "FLASK_APP": "analyticspyengine.webapp",
              "FLASK_DEBUG": true,
              "FLASK_ENV": "development"
          },
          "args": [
              "run"
          ],
          "jinja": true
      }
  </code></pre>
  
  <p>Content of webapp.py</p>
  
  <pre><code>#!/usr/bin/python3
  import sys
  from . import app   
  from . import analyticsservices
  </code></pre>
  
  <p>Content of analyticspyengine/<code>__init__.py</code></p>
  
  <pre><code>#!/usr/bin/python3
  import sys, os
  sys.path.insert(0, os.path.join(os.path.dirname(__file__)))
  
  from flask import Flask
  app = Flask(__name__) 
  </code></pre>
  
  <p>I'm facing the following problems. Completely helpless and frustrated!!!</p>
  
  <p>1) Execution is not hitting any breakpoints</p>
  
  <p>2) After launching the app with the above settings, I'm not able to stop the service. i.e, Even after stopping the debugger, the app seems to be running. I can see the requests are being served through terminal output and Postman. The process seems to be alive until VS Code is closed.</p>
  
  <p>Could someone shed some light?</p>