Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Multiprocessing child processes stall during VSCode debugpy breakpoints

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

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

2025年5月14日 から。

評価

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

説明

bug needs repro

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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