Last active
September 25, 2019 05:07
-
-
Save regner/40e25d3b0589640673eebfdde2bf9ac9 to your computer and use it in GitHub Desktop.
Example getting task to run when launching debug
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Backend: Debug", | |
"type": "python", | |
"request": "launch", | |
"module": "flask", | |
"cwd": "${workspaceFolder}", | |
"args": [ | |
"run", | |
"--host=0.0.0.0" | |
], | |
"preLaunchTask": "strip webhook", | |
"jinja": true | |
} | |
] | |
} |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "strip login", | |
"type": "shell", | |
"command": "stripe login --project-name=example" | |
}, | |
{ | |
"label": "strip webhook", | |
"type": "shell", | |
"command": "stripe listen --project-name=example --forward-to=http://localhost:5000/webhooks/stripe", | |
"isBackground": true, | |
"problemMatcher": [ | |
{ | |
"pattern": [ | |
{ | |
"regexp": ".", | |
"file": 1, | |
"location": 2, | |
"message": 3 | |
} | |
], | |
"background": { | |
"activeOnStart": true, | |
"beginsPattern": ".", | |
"endsPattern": ".", | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment