Skip to content

Commit 9b47e0e

Browse files
authored
Apply suggestions from code review
1 parent 03e8bfd commit 9b47e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/python/tutorial-fastapi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ Let's create the application!
119119
120120
![Dropdown with debugger configuration options, with FastAPI being highlighted](images/fastapi-tutorial/fastapi_debug_config_option.png)
121121
122-
This is automatically creating a debug configuiration for you that invokes uvicorn to start the application server through the debugger and allow you to step through the source code to inspect its behavior. You should see something like the following in the terminal:
122+
This automatically creates a debug configuration that invokes uvicorn to start the application server through the debugger and allows you to step through the source code to inspect its behavior. You should see something like the following in the terminal:
123123
124124
![Uvicorn server running message displayed in the terminal, with an URL to access the app](images/fastapi-tutorial/fastapi_debug_terminal.png)
125125
126-
>**Tip**: In the case where your default port is already in use, open the Command Palette (`kb(workbench.action.showCommands)`) and search for **Debug: Add Configuration**, select Python Debugger and then FastAPI. This will create a custom config file in `.vscode/launch.json` that you can edit. Add the following to `"args":[]` to set a custom port: `"--port=5000"`. Save the file, and restart the debugger using (`kb(workbench.action.debug.start)`).
126+
>**Tip**: In the case where your default port is already in use, stop the debugger and open the Command Palette (`kb(workbench.action.showCommands)`), search for **Debug: Add Configuration**, select Python Debugger, and then FastAPI. This will create a custom config file in `.vscode/launch.json` that you can edit. Add the following to `"args":[]` to set a custom port: `"--port=5000"`. Save the file, and restart the debugger using (`kb(workbench.action.debug.start)`).
127127
128128
7. `kbstyle(Ctrl+Click)` the `http://127.0.0.1:8000/` URL in the terminal to open your default browser to that address:
129129

0 commit comments

Comments
 (0)