1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot debug flask with vscode after update

Discussion in 'Programming/Internet' started by DungeonTiger, Sep 12, 2018.

  1. DungeonTiger

    DungeonTiger Guest

    I recently updated vscode (Version 1.27.1 (1.27.1) and now I cannot debug my flask application.

    I put a breakpoint in one of my route handlers and instead of stopping there it stops in serving.py in the function serve_forever on line 612.

    I was able to reproduce this by creating a simple app from the Flask website. Adding a breakpoint on return "Hello World!" and entering localhost:5000 in a browser. The launch configuration is the default one created by vscode for Flask.


    from flask import Flask
    app = Flask(__name__)

    def hello():
    return "Hello World!"

    Login To add answer/comment

Share This Page