Program doesn't stop on "Python Debugger Console" kill
Maintainers usually reply within 1 day
@eleanorjboyd is already working on this.
Since Mar 4, 2025.
Assessment
This issue has not been assessed yet.
Description
Type: Bug
Behaviour
On linux (Ubuntu 24.04 exactly), active python process doesn't stop on closing "Python Debugger Console" and debugger UI dissappears. On Windows 10 acts as expected.
Steps to reproduce:
- Run next script
import time
i = 0
while True:
with open("counter.txt", "w") as f:
f.write(str(i))
time.sleep(1)
i += 1
- Close "Python Debugger Console" through "Kill (Delete)" button
- Debugger UI dissappears, but created file "counter.txt" is still being updated
Diagnostic data
launch.json configuration
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2025-02-28 20:08:10.017 [info] Send text to terminal:
2025-02-28 20:08:10.218 [info] Send text to terminal: cd _ ; /usr/bin/env _/.venv/bin/python3 /root/.vscode-server/extensions/ms-python.debugpy-2025.0.1-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 46307 -- _/main.py
Output for Python Debugger in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python Debugger)
2025-02-28 20:08:09.464 [info] Resolving launch configuration with substituted variables
2025-02-28 20:08:09.628 [info] DAP Server launched with command: _/.venv/bin/python3 /root/.vscode-server/extensions/ms-python.debugpy-2025.0.1-linux-x64/bundled/libs/debugpy/adapter
2025-02-28 20:08:09.937 [info] Received 'debugpySockets' event from debugpy.
2025-02-28 20:08:10.012 [info] Received 'debugpySockets' event from debugpy.
2025-02-28 20:08:10.013 [info] Received 'debugpySockets' event from debugpy.
2025-02-28 20:08:10.612 [info] Received 'debugpySockets' event from debugpy.
2025-02-28 20:08:16.956 [info] Received 'debugpySockets' event from debugpy.
2025-02-28 20:08:17.043 [info] Received 'debugpySockets' event from debugpy.
Extension version: 2025.0.1
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 6.8.0-51-generic
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.3
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): VirtualEnvironment
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i5-11260H @ 2.60GHz (12 x 2611) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 15.71GB (7.84GB free) |
| Process Argv | --folder-uri vscode-remote://ssh-remote%2Bpureservers/home/projects --crash-reporter-id 3eae2273-f521-4059-a6b4-e3bdc79661a8 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | SSH: pureservers |
| OS | Linux x64 6.8.0-51-generic |
| CPUs | AMD Ryzen 9 3900 12-Core Processor (1 x 0) |
| Memory (System) | 1.92GB (0.56GB free) |
| VM | 0% |
- Dominant language
- TypeScript
- Stars
- 181
- Forks
- 126
- Avg merge
- 8h 49m
- Merged PRs (30d)
- 1
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-python-debugger
-
triage-needed
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/vscode-python-debugger#1110 ·
Maintainers usually reply within 1 day
-
triage-needed
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
microsoft/vscode-python-debugger#1024 · 1 comment ·
Maintainers usually reply within 1 day
-
Update dependencies with actionable security alertsPossibly taken @copilot-swe-agent claimed this 9 days ago. Opentriage-needed
microsoft/vscode-python-debugger#1111 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Update vulnerable npm dependenciesMay be free again A pull request for this issue was closed without being merged. Opentriage-needed
microsoft/vscode-python-debugger#1104 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
triage-needed
Difficulty 4/5 3-5 days Newbie friendliness 58/100
microsoft/vscode-python-debugger#1095 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in microsoft/vscode-python-debugger
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
diegosouzapw/OmniRoute#14869 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
Maintainers usually reply within 1 day
-
status: waiting triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
freeCodeCamp/freeCodeCamp#70412 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 88/100
opensearch-project/OpenSearch-Dashboards#12816 ·
Maintainers usually reply within 1 day