Skip to content

Conversation

@nilslindemann
Copy link
Contributor

@nilslindemann nilslindemann commented Nov 5, 2023

This chapter was outdated:

  • VS Code now has a special debug configuration for FastAPI, so calling uvicorn from the myapp.py is not necessary.
  • The UI of PyCharm has changed, and it is also easier to start the debugger.

I kept the __name__ == "__main__" part, but rewrote the rest.

Feel free to modify as you want.

#10591 is a translation of this.

@tiangolo

This comment was marked as outdated.

nilslindemann pushed a commit to nilslindemann/fastapi that referenced this pull request Nov 5, 2023
* Full translation
* In sync with fastapi#10590
* Google Translate used
* Manually checked
* Checked for errors using LanguageTool
@tiangolo

This comment was marked as outdated.

When originally rewriting the text I modified the German translation of the original English text and, when done, I translated everything back to English. Some things got lost while doing that, which this commit fixes.

Also undo the changes of the previous commit.
@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

@alejsdev alejsdev added the docs Documentation about how to use FastAPI label Jan 10, 2024
@alejsdev alejsdev removed their assignment Feb 2, 2024
@nilslindemann
Copy link
Contributor Author

Thanks for the review, @alejsdev

@tiangolo

This comment was marked as outdated.

@tiangolo

This comment was marked as outdated.

Copy link
Member

@YuriiMotov YuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nilslindemann, thanks for your efforts!

I think there are a couple of things that need to be improved. 🧐
Would you like to continue working on this?


* Next, choose "FastAPI" from the options.

* In the subsequent dropdown, enter the name of your application file, here `myapp.py` (This is only necessary because VS Code did not find a `main.py` file).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this has been changed. I tried to follow steps and it didn't ask me to provide file name. It showed launch.json with default main.py right after I chose "FastAPI" on previous step.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Yuri, I currently don't have time for this. Very probable that this is meanwhile outdated again. After all, the PR is nearly two years old. I will close this issue for now, and may create a new one when there is time.

Comment on lines +84 to +86
```Python hl_lines="1 15"
{!../../../docs_src/debugging/tutorial002.py!}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```Python hl_lines="1 15"
{!../../../docs_src/debugging/tutorial002.py!}
```
{* ../../docs_src/debugging/tutorial002.py hl[1,15] *}


## PyCharm

PyCharm does not currently have a debug configuration specifically for FastAPI applications, so we will run the `uvicorn` server directly from our `myapp.py`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nilslindemann
Copy link
Contributor Author

Closing this as it is outdated, as @YuriiMotov pointed out. Will maybe recreate at a later time. Also, Party! I don't have any open PRs in this Repo anymore. It was a fun time, @tiangolo, @alejsdev and all others I have met. See you again.

@YuriiMotov
Copy link
Member

@nilslindemann, thank you for your contribution!
Sorry for not being able to review it in time..

@nilslindemann nilslindemann deleted the update-en/docs/tutorial/debugging.md branch July 27, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants