Skip to content

Flask debugging will not run #4240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
carc1n0gen opened this issue Jan 31, 2019 · 1 comment
Closed

Flask debugging will not run #4240

carc1n0gen opened this issue Jan 31, 2019 · 1 comment
Assignees

Comments

@carc1n0gen
Copy link

carc1n0gen commented Jan 31, 2019

Environment data

  • VS Code version: 1.3.0
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: macOS Sierra 10.12.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Relevant/affected Python packages and their versions: flask 1.0.2

I'm going to skip the expected and actual behaviour, because I'm pretty sure there is just something wrong with my machine all of the sudden, because this exact configuration works 30 minutes ago.

I run the debugger, I see it launch, and then it just falls back to the shell silently. Nothing in the debug console, nothing in output, nothing in problems.

Maybe someone has had this issue before

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

pipenv shell
cd /Users/evansca/Code/python/quickpaste ; env "FLASK_APP=app.py" "PYTHONIOENCODING=UTF-8" "PYTHONUNBUFFERED=1" /Users/evansca/.local/share/virtualenvs/quickpaste-5h8m4tDu/bin/python /Users/evansca/.vscode/extensions/ms-python.python-2019.1.0/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 49742 -m flask run --no-debugger --no-reload
✔ ~/Code/python/quickpaste [master L|✔]
10:04 $ pipenv shell
Launching subshell in virtual environment…
 . /Users/evansca/.local/share/virtualenvs/quickpaste-5h8m4tDu/bin/activate
✔ ~/Code/python/quickpaste [master L|✔]
10:05 $  . /Users/evansca/.local/share/virtualenvs/quickpaste-5h8m4tDu/bin/activate
(quickpaste-5h8m4tDu) ✔ ~/Code/python/quickpaste [master L|✔]
10:05 $
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Flask",
            "type": "python",
            "request": "launch",
            "module": "flask",
            "env": {
                "FLASK_APP": "app.py"
            },
            "args": [
                "run",
                "--no-debugger",
                "--no-reload"
            ],
            "jinja": true
        }
    ]
}

And I do have an app.py in the root that is the flask app

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Jan 31, 2019
@d3r3kk d3r3kk added the triage label Jan 31, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jan 31, 2019
@d3r3kk d3r3kk self-assigned this Jan 31, 2019
@DonJayamanne
Copy link

Duplicate of #4203

@DonJayamanne DonJayamanne marked this as a duplicate of #4203 Jan 31, 2019
@ghost ghost removed the triage label Jan 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants