Skip to content

Commit 31ff36f

Browse files
Merge pull request #13074 from cwebster-99/refactored-yodel
Addressing doc bugs for PTVS content
2 parents 57791c5 + e29fe66 commit 31ff36f

4 files changed

+10
-5
lines changed

docs/python/configure-web-apps-for-iis-windows.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `web.config` file for your Python application instructs the IIS web server (
2929

3030
If your project does not already contain a `web.config` file, you can add one by right-clicking the project directory, selecting **Add > New Item** and searching for `web.config` or creating a blank `web.config` XML file.
3131

32-
### Configure the HttpPlatformHandler
32+
### Option 1 : Configure the HttpPlatformHandler
3333

3434
The HttpPlatform module passes socket connections directly to a standalone Python process. This pass-through allows you to run any web server you like, but it requires a startup script that runs a local web server. This approach is commonly done by using a Python web framework, such as Flask or Django. You specify the script in the `<httpPlatform>` element of the `web.config` file. The `processPath` attribute points to the site extension's Python interpreter. The `arguments` attribute points to your startup script that runs a local web server, in this case `runserver.py`, and any arguments you want to provide:
3535

@@ -56,12 +56,12 @@ The HttpPlatform module passes socket connections directly to a standalone Pytho
5656

5757
In this example, the `HTTP_PLATFORM_PORT` environment variable contains the port that your local server should listen on for connections from `localhost`. This example also shows how to create another environment variable, `SERVER_PORT`. You can create and assign environment variables as needed.
5858

59-
### Configure the FastCGI handler
59+
### Option 2 : Configure the FastCGI handler
6060

61-
FastCGI is an interface that works at the request level. IIS receives incoming connections and forwards each request to a WSGI app running in one or more persistent Python processes.
61+
Alternatively, you can use FastCGI to configure your apps. FastCGI is an interface that works at the request level. IIS receives incoming connections and forwards each request to a WSGI app running in one or more persistent Python processes.
6262

6363
> [!NOTE]
64-
> We recommend using **HttpPlatformHandler** to configure your apps, as the [WFastCGI](https://pypi.org/project/wfastcgi/) project is no longer maintained.
64+
> Although you can set your project up using FastCGI, we recommend using **HttpPlatformHandler** to configure your apps, as the [WFastCGI](https://pypi.org/project/wfastcgi/) project is no longer maintained and may result in bugs.
6565
6666
To use FastCGI, first install and configure the wfastcgi package as described in [pypi.org/project/wfastcgi/](https://pypi.io/project/wfastcgi).
6767

docs/python/debugging-python-in-visual-studio.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ The following table summarizes these commands and provides the keyboard shortcut
9191

9292
| Command | Shortcut | Description |
9393
| --- | --- | --- |
94+
| **Stop** | **Shift + F5** | Stop the debugging session. |
95+
| **Restart** | **Ctrl + Shift + F5** | Restart the current debugging session. |
9496
| **Continue** | **F5** | Run code until you reach the next breakpoint. |
9597
| **Step Into** | **F11** | Run the next statement and stop. If the next statement is a call to a function, the debugger stops at the first line of the called function. |
9698
| **Step Over** | **F10** | Run the next statement, including making a call to a function (running all its code) and applying any return value. This command allows you to easily skip functions that you don't need to debug. |

docs/python/installing-python-support-in-visual-studio.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Python support is available only on Visual Studio for Windows. On Mac and Linux,
2020

2121
- Visual Studio on Windows. To install the product, follow the steps in [Install Visual Studio](../install/install-visual-studio.md).
2222

23+
> [!NOTE]
24+
> You also need a Python interpreter installed in order to work with Python in Visual Studio. We recommend installing one from [python.org](https://www.python.org/downloads/) or Anaconda. For more information on Python interpreters, see [Installing Python Interpreters](installing-python-interpreters.md).
25+
2326
## Download and install the Python workload
2427

2528
Complete the following steps to download and install the Python workload.

docs/python/profiling-python-code-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Visual Studio for Mac isn't supported. For more information, see [What's happeni
2929

3030
## Use profiler with CPython-based interpreter
3131

32-
When you profile a Python application, Visual Studio collects data for the lifetime of the process.
32+
When you profile a Python application, Visual Studio collects data for the lifetime of the process, measured in milliseconds (ms).
3333

3434
Follow these steps to start working with the profiling features in Visual Studio:
3535

0 commit comments

Comments
 (0)