Skip to content
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

Update documentation for debugging of Flask apps #574

Closed
DonJayamanne opened this issue Jan 11, 2018 · 1 comment
Closed

Update documentation for debugging of Flask apps #574

DonJayamanne opened this issue Jan 11, 2018 · 1 comment
Assignees
Labels
debt Covers everything internal: CI, testing, refactoring of the codebase, etc.
Milestone

Comments

@DonJayamanne
Copy link

DonJayamanne commented Jan 11, 2018

Related to #573

Update launch.json as follows:

		{
			"name": "Python: Flask (0.11.x or later)",
			"type": "python",
			"request": "launch",
			"stopOnEntry": false,
			"module": "flask",
			"pythonPath": "${config:python.pythonPath}",
			"cwd": "${workspaceFolder}",
			"env": {
				"FLASK_APP": "${workspaceFolder}/app.py"
			},
			"args": [
				"run",
				"--no-debugger",
				"--no-reload"
			],
			"envFile": "${workspaceFolder}/.env",
			"debugOptions": [
				"RedirectOutput"
			]
		},

Update with a sample app.py file:

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run()
@brettcannon brettcannon added the debt Covers everything internal: CI, testing, refactoring of the codebase, etc. label Jan 12, 2018
@DonJayamanne DonJayamanne added this to the February 2018 milestone Feb 1, 2018
@DonJayamanne
Copy link
Author

PR has been submitted microsoft/vscode-docs#1451

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Covers everything internal: CI, testing, refactoring of the codebase, etc.
Projects
None yet
Development

No branches or pull requests

3 participants