Skip to content

Commit c24964d

Browse files
committed
use new api
1 parent 52852df commit c24964d

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

package.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"theme": "dark"
2424
},
2525
"engines": {
26-
"vscode": "^1.5.0"
26+
"vscode": "^1.6.0"
2727
},
2828
"categories": [
2929
"Languages",
@@ -182,7 +182,8 @@
182182
"label": "Python",
183183
"enableBreakpointsFor": {
184184
"languageIds": [
185-
"python", "html"
185+
"python",
186+
"html"
186187
]
187188
},
188189
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
@@ -389,7 +390,28 @@
389390
"name": "Flask",
390391
"type": "python",
391392
"request": "launch",
392-
"stopOnEntry": true,
393+
"stopOnEntry": false,
394+
"pythonPath": "${config.python.pythonPath}",
395+
"program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",
396+
"env": {
397+
"FLASK_APP": "${workspaceRoot}/quickstart/app.py"
398+
},
399+
"args": [
400+
"run",
401+
"--no-debugger",
402+
"--no-reload"
403+
],
404+
"debugOptions": [
405+
"WaitOnAbnormalExit",
406+
"WaitOnNormalExit",
407+
"RedirectOutput"
408+
]
409+
},
410+
{
411+
"name": "Flask (old)",
412+
"type": "python",
413+
"request": "launch",
414+
"stopOnEntry": false,
393415
"pythonPath": "${config.python.pythonPath}",
394416
"program": "${workspaceRoot}/run.py",
395417
"args": [],
@@ -816,4 +838,4 @@
816838
"vscode": "^1.0.0",
817839
"mocha": "^2.3.3"
818840
}
819-
}
841+
}

0 commit comments

Comments
 (0)