You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I own licenses to JetBrains products, but prefer to mostly work in VSCode
Launching connexion in VSCode for good local-dev is harder than it needs to be.
Sample launch.json (app.py)
Assuming your app is in app.py, and you are just spinning this up without much of an app framework yet
{
// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger:app.py",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"env": {
},
"args": [
"--reload",
"--port",
"5001",
"--host",
"0.0.0.0",
"app:app",
],
"jinja": true,
"autoStartBrowser": false,
"justMyCode": false,
"cwd": "${workspaceFolder}",
},
],
}
Sample launch.json (module loading)
{
// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger:{your_module}",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"env": {
},
"args": [
"--reload",
"--port",
"5001",
"--host",
"0.0.0.0",
"your_module:app",
],
"jinja": true,
"autoStartBrowser": false,
"justMyCode": false,
"cwd": "${workspaceFolder}",
},
],
}
Of course you'd need uvicorn for this purpose, but it seems to work across AsyncApp, and FlaskApp.
The text was updated successfully, but these errors were encountered:
Description
Hi, I own licenses to JetBrains products, but prefer to mostly work in VSCode
Launching connexion in VSCode for good local-dev is harder than it needs to be.
Sample launch.json (app.py)
Assuming your app is in app.py, and you are just spinning this up without much of an app framework yet
Sample launch.json (module loading)
Of course you'd need uvicorn for this purpose, but it seems to work across
AsyncApp
, andFlaskApp
.The text was updated successfully, but these errors were encountered: