Skip to content

Instantly share code, notes, and snippets.

@regner
Last active September 25, 2019 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save regner/40e25d3b0589640673eebfdde2bf9ac9 to your computer and use it in GitHub Desktop.
Save regner/40e25d3b0589640673eebfdde2bf9ac9 to your computer and use it in GitHub Desktop.
Example getting task to run when launching debug
{
"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
}
]
}
{
"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