Last active
September 22, 2016 08:36
-
-
Save otech-nl/bfa60b7526e4c55d758fd7b9478eba60 to your computer and use it in GitHub Desktop.
Remote debugging (e.g. using Vagrant) with Flask and Visual Studio Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if app.debug: | |
if environ.get("WERKZEUG_RUN_MAIN") == "true": # check to prevent "Address already in use" | |
import ptvsd | |
ptvsd.enable_attach("my_secret") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment