You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/containers/docker-compose.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ Create an **Attach** [launch configuration](/docs/editor/debugging.md#launch-con
107
107
108
108
For debugging Python with Docker Compose, follow these steps:
109
109
110
-
1. On the **Debug** tab, choose the **Configuration** dropdown, choose **New Configuration**, choose **Python**, and select the `Remote Attach` configuration template.
110
+
1. On the **Debug** tab, choose the **Configuration** dropdown, choose **New Configuration**, choose **Python Debugger**, and select the `Remote Attach` configuration template.
111
111
112
112

113
113
@@ -116,8 +116,8 @@ For debugging Python with Docker Compose, follow these steps:
116
116
```json
117
117
"configurations": [
118
118
{
119
-
"name": "Python: Remote Attach",
120
-
"type": "python",
119
+
"name": "Python Debugger: Remote Attach",
120
+
"type": "debugpy",
121
121
"request": "attach",
122
122
"port": 5678,
123
123
"host": "localhost",
@@ -130,7 +130,7 @@ For debugging Python with Docker Compose, follow these steps:
130
130
}
131
131
```
132
132
133
-
1. When done editing the **Attach** configuration, save the `launch.json`. Navigate to the **Debug** tab and select **Python: Remote Attach** as the active configuration.
133
+
1. When done editing the **Attach** configuration, save the `launch.json`. Navigate to the **Debug** tab, and select **Python Debugger: Remote Attach** as the active configuration.
134
134
135
135
1. If you already have a valid Dockerfile, we recommend running the command **Docker: Add Docker Compose Files to Workspace**. This will create a `docker-compose.yml` file and also a `docker-compose.debug.yml`, which volume maps and starts the Python debugger in the container. If you do not have a Dockerfile already, we recommend running **Docker: Add Docker Files to Workspace** and selecting **Yes** to include Docker Compose files.
136
136
@@ -153,7 +153,7 @@ For debugging Python with Docker Compose, follow these steps:
153
153
- 5678:5678
154
154
```
155
155
156
-
1. Once your container is built and running, attach the debugger by hitting `kb(workbench.action.debug.start)` with the **Python: Remote Attach** launch configuration selected.
156
+
1. Once your container is built and running, attach the debugger by hitting `kb(workbench.action.debug.start)` with the **Python Debugger: Remote Attach** launch configuration selected.
157
157
158
158

Copy file name to clipboardExpand all lines: docs/languages/python.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ The Python extension can apply a number of different linters including Pylint, p
77
77
78
78
## Debugging
79
79
80
-
No more `print` statement debugging! VS Code comes with great debugging support for Python, allowing you to set breakpoints, inspect variables, and use the debug console for an in-depth look at how your program is executing step by step. Debug a number of different types of Python applications, including multi-threaded, web, and remote applications.
80
+
No more `print` statement debugging! VS Code comes with great debugging support for Python via the [Python Debugger extension](https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy), allowing you to set breakpoints, inspect variables, and use the debug console for an in-depth look at how your program is executing step by step. Debug a number of different types of Python applications, including multi-threaded, web, and remote applications.
81
81
82
82
For more specific information on debugging in Python, such as configuring your `launch.json` settings and implementing remote debugging, see [Debugging](/docs/python/debugging.md). General VS Code debugging information is found in the [debugging document](/docs/editor/debugging.md).
83
83
@@ -93,7 +93,7 @@ The Python extension automatically detects Python interpreters that are installe
93
93
94
94
The current environment is shown on the right side of the VS Code Status Bar:
95
95
96
-

96
+

97
97
98
98
The Status Bar also indicates if no interpreter is selected:
0 commit comments