VSCode Configurations?


#1

I am beginning sanic development and would like to use VSCode for my IDE. One of the things I’d like to set up is a launch configuration. By default, there is one for django and Flask. Since I’m still new at this, I’m not entirely sure what options I should use to properly launch a sanic application.

This is what the Flask one looks like:

    {
        "name": "Python: Flask",
        "type": "python",
        "request": "launch",
        "module": "flask",
        "env": {
            "FLASK_APP": "app.py"
        },
        "args": [
            "run",
            "--no-debugger",
            "--no-reload"
        ],
        "jinja": true
    },

Other than changing the module name to sanic, are there any environment variables I should set or arguments I should pass?

Thank you