microsoft / microsoft/vscode-python-debugger

Program doesn't stop on "Python Debugger Console" kill

オープン
#641 コメント 12 件 リアクション 0 件 担当者 1 名 GitHub で見る

@eleanorjboyd がすでに取り組んでいます。

2025年3月4日 から。

triage-needed
主要言語
TypeScript
スター
180
フォーク
126
平均マージ
2日 3時間
マージ済み PR(30日)
3

説明

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:

  1. 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
  1. Close "Python Debugger Console" through "Kill (Delete)" button
  2. Debugger UI dissappears, but created file "counter.txt" is still being updated

Diagnostic data

launch.json configuration

Output for Python in the Output panel (ViewOutput, 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 (ViewOutput, 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
System Info
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%

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。