Multiprocessing child processes stall during VSCode debugpy breakpoints
@heejaechang がすでに取り組んでいます。
2025年5月14日 から。
評価
この issue はまだ評価されていません。
説明
Environment data
- debugpy version: 1.8.13
- OS and version: Windows 11
- Python version: 3.12+ (python standalone by uv)
- Using VS Code or Visual Studio: VS Code 1.100.1 (Universal) on macOS tunneled to Windows with same version VS Code
Actual behavior
I have a running child process which draws some rectangles on screen. If I hit a breakpoint in my main process now I can't manually trigger rectangles drawing from the REPL. This isn't working with debugpy and python 3.12+ - it is working though with Python 3.11.12. Outside of VS Code with f.e. pdb.set_trace() it's working in all versions of Python I've tested.
Expected behavior
The child process keeps working and I can manually trigger things.
Steps to reproduce:
minimal example, tested with Python 3.13.3 on Windows and issue persists.
import multiprocessing
import time
def child_process(q):
while True:
msg = q.get()
if msg == "STOP":
print("Child received STOP command.")
break
print(f"Child received: {msg}")
time.sleep(0.5)
if __name__ == "__main__":
multiprocessing.freeze_support()
queue = multiprocessing.Queue()
child = multiprocessing.Process(target=child_process, args=(queue,))
child.start()
for i in range(3):
queue.put(f"Message {i}")
time.sleep(1)
# Set a breakpoint on the next line in VSCode
queue.put("Message at breakpoint") # BREAKPOINT HERE
# execute in REPL at breakpoint queue.put(f"Hello from REPL")
# Try to continue communication after breakpoint
queue.put("Final message")
queue.put("STOP")
child.join()
print("Parent process complete.")
no launch.json in use, I've just hit the "Debug Python File" icon in VS Code.
- 主要言語
- Python
- スター
- 2.5k
- フォーク
- 205
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/debugpy のほかの issue
-
pydevd_comm.py start_client() does not set TCP_NODELAY on the connections it opens対応中かも @nightcityblade が 49 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Document "rules"-option対応中かも @nightcityblade が 38 日前に担当しました。 オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
wx.EventLoop() deprecation warning対応中かも @nightcityblade が 36 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
debugpy.configure(python=) is not properly documented対応中かも @nightcityblade が 47 日前に担当しました。 オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopback対応中かも @nightcityblade が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/debugpy の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FuRongJun-1999/dsh-memory#56 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pgadmin-org/pgadmin4#10503 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#3857 ·
-
needs-ac
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Ikalus1988/MisakaNet#2845 ·
メンテナーはふだん 1 日以内に返信
-
bug connectors operations
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pyinfra-dev/pyinfra#1989 ·
メンテナーはふだん 3 日以内に返信