From: YangQuan Date: Sun, 29 Mar 2020 16:50:29 +0000 (+0800) Subject: :memo: Add example of Pycharm in tutorial/debugging.md (#1096) X-Git-Tag: 0.53.1~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d54215a3a440215c69786c1372923302e4f0d82;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add example of Pycharm in tutorial/debugging.md (#1096) * 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 --- diff --git a/docs/en/docs/img/tutorial/debugging/image02.png b/docs/en/docs/img/tutorial/debugging/image02.png new file mode 100644 index 0000000000..8394f50e2d Binary files /dev/null and b/docs/en/docs/img/tutorial/debugging/image02.png differ diff --git a/docs/en/docs/tutorial/debugging.md b/docs/en/docs/tutorial/debugging.md index 733ae32a17..22893073bb 100644 --- a/docs/en/docs/tutorial/debugging.md +++ b/docs/en/docs/tutorial/debugging.md @@ -95,3 +95,18 @@ It will then start the server with your **FastAPI** code, stop at your breakpoin Here's how it might look: + +--- + +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: + +