]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Add example of Pycharm in tutorial/debugging.md (#1096)
authorYangQuan <youngquan@qq.com>
Sun, 29 Mar 2020 16:50:29 +0000 (00:50 +0800)
committerGitHub <noreply@github.com>
Sun, 29 Mar 2020 16:50:29 +0000 (18:50 +0200)
* add example of pycharm in tutorial/debugging.md

* :memo: Update PyCharm debug instructions and screenshot

* :truck: Move image to new location in docs

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/img/tutorial/debugging/image02.png [new file with mode: 0644]
docs/en/docs/tutorial/debugging.md

diff --git a/docs/en/docs/img/tutorial/debugging/image02.png b/docs/en/docs/img/tutorial/debugging/image02.png
new file mode 100644 (file)
index 0000000..8394f50
Binary files /dev/null and b/docs/en/docs/img/tutorial/debugging/image02.png differ
index 733ae32a17eac0a81c354f983862e0e06cf1a9c0..22893073bbe664616d9bed5cdbb1664b699bf739 100644 (file)
@@ -95,3 +95,18 @@ It will then start the server with your **FastAPI** code, stop at your breakpoin
 Here's how it might look:
 
 <img src="/img/tutorial/debugging/image01.png">
+
+---
+
+If you use Pycharm, you can:
+
+* Open the "Run" menu.
+* Select the option "Debug...".
+* Then a context menu shows up.
+* Select the file to debug (in this case, `main.py`).
+
+It will then start the server with your **FastAPI** code, stop at your breakpoints, etc.
+
+Here's how it might look:
+
+<img src="/img/tutorial/debugging/image02.png">