The dead thread won't disappear in call stack monitor
まだ誰も着手していません。
評価
調査の方向性
まず、issue にある最小限の Python 再現コードを、説明されている VS Code の launch.json 構成および gevent と組み合わせて Windows 上で実行します。コールスタックモニターが終了したスレッドをどのように処理するかを調べ、スタックモニターのサイズを変更しなくてもデッドスレッドが直ちに消えることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Environment data
- debugpy version: 1.8.1, install from PyPI
- OS and version: Windows 10.0.19045.4291
- Python version cPython 3.9.13 downloaded from python.org
- Using VS Code or Visual Studio: VS code
Actual behavior
here is the minest reproduce code:
import gevent
import gevent.monkey; gevent.monkey.patch_all()
import subprocess
import threading
cmd = 'ver'
info = subprocess.check_output(cmd,
stdin=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
text=True,
shell=True)
print(f'{cmd} => {info}')
https://github.com/microsoft/debugpy/assets/30763045/2fdeeaba-f8f7-4895-a3bd-2ece76c4014d
the dead thread won't disappear immediately util the stack monitor ajust size.
Expected behavior
the dead thread should disappear immediately.
Steps to reproduce:
- paster the code to file
- take the breakpoint
- create a python debug config, add gevent needed env to launce.json, then launch.
- 主要言語
- Python
- スター
- 2.5k
- フォーク
- 202
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/debugpy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/debugpy の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·