-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Debug using vs code #503
Comments
To run a debugger dockerless do the following. Create a new file
run.py import uvicorn
if __name__ == "__main__":
uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True) Use default launch
Let me know if works. |
But the environment variable cannot be obtained |
@MaxwellEdisons you could re-load them again with dotenv (which should already be present as it used by pydantic) import uvicorn
from dotenv import load_dotenv
load_dotenv("../.env")
if __name__ == "__main__":
uvicorn.run("app.main:app", host="0.0.0.0", port=8002, reload=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i'm using this repo for my next project,
but i can't figure out a way for debugging in vs code or connect jupyter server with vs code,
i want to be able to set breakpoints and watch call sack .. etc.
The text was updated successfully, but these errors were encountered: