-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 backend in Pycharm or VSCode #242
Comments
I checked #7 , but no satisfied answer. Can anyone provide best practice for debugging? |
How would you normally debug something, what does that look like? If you create tests then run the debugger through them I'd suggest setting up pytest integration and using pycharm's professional version connect it to the docker compose interpreter. A Google search for the keywords should get you there. |
I run the backend individually. Steps as following.
|
I was able to get it working based on this repo: https://github.com/Kludex/fastapi-docker-debug I can restart the backend container in debug mode and connect to the session via VS Code. Launch.json
docker-compose.debug.yml
Command to run backend in debug mode
|
For PyCharm see #7 (comment) |
I run the project with docker successfully, but I want to know how can I debug backend in PyCharm or VSCode step by step?
The text was updated successfully, but these errors were encountered: